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