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