]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - pgsrc/Help%2FRedirectToPlugin
Do not execute example
[SourceForge/phpwiki.git] / pgsrc / Help%2FRedirectToPlugin
1 Date: Fri, 10 Sep 2010 13:46:13 +0000
2 Mime-Version: 1.0 (Produced by PhpWiki 1.4.0RC1)
3 X-Rcs-Id: $Id$
4 Content-Type: application/x-phpwiki;
5   pagename=Help%2FRedirectToPlugin;
6   flags=PAGE_LOCKED%2CEXTERNAL_PAGE;
7   markup=2;
8   charset=UTF-8
9 Content-Transfer-Encoding: binary
10
11 The **~RedirectTo** [[Help:WikiPlugin|plugin]] can be used to redirect a user to another page.
12 In other words it makes a page an //alias// for another page.
13
14 When redirecting to another wiki page, a note is added to the top of the target
15 page saying  //(Redirected from SomeRedirectingPage)//.
16
17 Redirection to external URLs will only work on locked pages.
18
19 == Arguments ==
20
21 Use only one of these arguments at a time.
22
23 {| class="bordered"
24 |-
25 ! Argument
26 ! Description
27 ! Default value
28 |-
29 | **page**
30 | The page to redirect to (a wiki page name).
31 | none
32 |-
33 | **href**
34 | An external URL to redirect to.  Redirection to external URLs will only work on locked pages. (If the URL contains funny characters, you'll probably have to put quotes around the URL.)
35 | none
36 |}
37
38 == Caveats ==
39
40 For most purposes, the ~RedirectToPlugin invocation makes any other content on the page inaccessible.
41
42 == Example ==
43
44 A page may be made a alias for the [[HomePage]] by using this code:
45 {{{
46 <<RedirectTo page="HomePage">>
47 }}}
48
49 To see the example in action, visit [[HomePageAlias]].
50
51 <noinclude>
52 ----
53 [[PhpWikiDocumentation]] [[CategoryWikiPlugin]]
54 </noinclude>