1 Date: Wed, 27 Feb 2002 19:54:00 -0500
2 Mime-Version: 1.0 (Produced by PhpWiki 1.3.3-jeffs-hacks)
3 X-Rcs-Id: $Id: Help%2FMagicPhpWikiURLs,v 1.1 2005-11-21 22:19:00 rurban Exp $
4 Content-Type: application/x-phpwiki;
5 pagename=Help%2FMagicPhpWikiURLs;
7 pgsrc_version="2 $Revision: 1.1 $";
10 Content-Transfer-Encoding: binary
12 !!! About phpwiki: URLs
14 A special type of URL is available for making links to perform
15 administrative and other special functions in PhpWiki. Here is a
16 brief description of how they work.
18 The basic syntax of a phpwiki: URL is
21 __phpwiki:__''pagename''__?__''query-args''
24 If _pagename_ is omitted it defaults to the current page.
26 _Query-args_ should be a set of parameters in standard HTTP GET
29 The "action=''x''" parameter should almost always be given. It can be one of
30 __browse__, __diff__, __edit__, __viewsource__,
31 __zip__, __dumpserial__, __loadserial__,
32 __remove__, __lock__, __unlock__,
33 __login__, __logout__, __setprefs__ or __save__.
34 The default action is __browse__.
36 Some of the actions accept other parameters.
38 __FullTextSearch__, __TitleSearch__:
40 Accepts __s__=search term, and __size__=input size.
52 Accepts __editversion__, __minor_edit__, and __content__.
56 Accepts __edit_area_width__, __edit_area_height__.
58 !! Writing Magic Links in Wiki Pages
60 A magic link looks like:
63 __~[__ ''text'' __|__ ''phpwiki-url'' __]__
66 The "''text'' *|*" is optional but usually recommended. If given it
67 will provide the label for the link.
69 The _phpwiki-url_ is a *phpwiki:* URL as described above.
74 [ Edit the SandBox | phpwiki:SandBox?action=edit ]
76 will generate a link which will take you directly to editing the
77 SandBox, like so: [Edit the SandBox | phpwiki:SandBox?action=edit].
80 * [ Diff the SandBox | phpwiki:SandBox?action=diff ],
81 * [ Lock the HomePage | phpwiki:HomePage?action=lock ],
82 * [ Get a Full Zip Dump | phpwiki:?action=zip&include=all ],
83 * Search for [ Page titles containing 'wiki' | phpwiki:?action=TitleSearch&s=wiki ]
85 !! Writing Magic Forms in Wiki Pages
87 ''__Note__: The old syntax for Magic forms is no longer supported.
88 They are superseded by =<?plugin-form>=.''
90 If the plugin is called using *<?plugin-form* instead of *<?plugin*
91 and the plugin supports searching, then it will be rendered as a form.
95 If given, specifies the size of the input area.
99 Specifies the default value for the input.
103 A search plugin invoked with *<?plugin* instead of *<?plugin-form*
104 simply inserts the search results of the plugin:
107 <?plugin TitleSearch s=wiki noheader=true ?>
110 Search results for Page titles containing 'wiki':
112 <?plugin TitleSearch s=wiki noheader=true ?>
115 <?plugin-form FullTextSearch ?>
120 <?plugin-form FullTextSearch ?>
125 <?plugin-form TitleSearch formsize=12 ?>
130 <?plugin-form TitleSearch formsize=12 ?>