1 Date: Mon, 16 Jun 2008 14:15:24 +0000
2 Mime-Version: 1.0 (Produced by PhpWiki 1.3.14-20080124)
3 X-Rcs-Id: $Id: Help%2FMagicPhpWikiURLs,v 1.3 2008-06-18 01:12:39 vargenau Exp $
4 Content-Type: application/x-phpwiki;
5 pagename=Help%2FMagicPhpWikiURLs;
9 Content-Transfer-Encoding: binary
11 !!! About phpwiki: URLs
13 A special type of URL is available for making links to perform
14 administrative and other special functions in PhpWiki. Here is a
15 brief description of how they work.
17 The basic syntax of a phpwiki: URL is
20 __phpwiki:__''pagename''__?__''query-args''
23 If _pagename_ is omitted it defaults to the current page.
25 _Query-args_ should be a set of parameters in standard HTTP GET
28 The "action=''x''" parameter should almost always be given. It can be one of
29 __browse__, __diff__, __edit__, __viewsource__,
30 __zip__, __dumpserial__, __loadserial__,
31 __remove__, __lock__, __unlock__,
32 __login__, __logout__, __setprefs__ or __save__.
33 The default action is __browse__.
35 Some of the actions accept other parameters.
37 __FullTextSearch__, __TitleSearch__:
39 Accepts __s__=search term, and __size__=input size.
51 Accepts __editversion__, __minor_edit__, and __content__.
55 Accepts __edit_area_width__, __edit_area_height__.
57 !! Writing Magic Links in Wiki Pages
59 A magic link looks like:
62 __~[__ ''text'' __|__ ''phpwiki-url'' __]__
65 The "''text'' *|*" is optional but usually recommended. If given it
66 will provide the label for the link.
68 The _phpwiki-url_ is a *phpwiki:* URL as described above.
73 [ Edit the SandBox | phpwiki:SandBox?action=edit ]
75 will generate a link which will take you directly to editing the
76 SandBox, like so: [Edit the SandBox | phpwiki:SandBox?action=edit].
79 * [ Diff the SandBox | phpwiki:SandBox?action=diff ],
80 * [ Lock the HomePage | phpwiki:HomePage?action=lock ],
81 * [ Get a Full Zip Dump | phpwiki:?action=zip&include=all ],
82 * Search for [ Page titles containing 'wiki' | phpwiki:?action=TitleSearch&s=wiki ]
84 !! Writing Magic Forms in Wiki Pages
86 ''__Note__: The old syntax for Magic forms is no longer supported.
87 They are superseded by =<?plugin-form>=.''
89 If the plugin is called using *<?plugin-form* instead of *<?plugin*
90 and the plugin supports searching, then it will be rendered as a form.
94 If given, specifies the size of the input area.
98 Specifies the default value for the input.
102 A search plugin invoked with *<?plugin* instead of *<?plugin-form*
103 simply inserts the search results of the plugin:
106 <?plugin TitleSearch s=wiki noheader=true ?>
109 Search results for Page titles containing 'wiki':
111 <?plugin TitleSearch s=wiki noheader=true ?>
114 <?plugin-form FullTextSearch ?>
119 <?plugin-form FullTextSearch ?>
124 <?plugin-form TitleSearch formsize=12 ?>
129 <?plugin-form TitleSearch formsize=12 ?>
133 [PhpWikiDocumentation]