Rev | Author | # | Line |
---|---|---|---|
1 | The PhpWiki programming team | 1 | !!! About phpwiki: URLs |
2 | |||
3 | A special type of URL is available for making links to perform | ||
4 | administrative and other special functions in PhpWiki. Here is a | ||
5 | brief description of how they work. | ||
6 | |||
7 | The basic syntax of a phpwiki: URL is | ||
8 | __phpwiki:__''pagename''__?__''query-args'' | ||
9 | |||
10 | If ''pagename'' is omitted it defaults to the current page. | ||
11 | |||
12 | ''Query-args'' should be a set of parameters in standard | ||
13 | HTTP GET format. | ||
14 | |||
15 | The "action=''x''" parameter should almost always be given. It can be one of | ||
2 | The PhpWiki programming team | 16 | __browse__, __diff__, __edit__, __viewsource__, |
1 | The PhpWiki programming team | 17 | __zip__, __dumpserial__, __loadserial__, |
18 | __remove__, __lock__, __unlock__, | ||
19 | __login__, __logout__, __setprefs__ or __save__. | ||
20 | The default action is __browse__. | ||
21 | |||
22 | Some of the actions accept other parameters. | ||
23 | |||
2 | The PhpWiki programming team | 24 | ;__FullTextSearch__, __TitleSearch__, : Accepts __s__=search term, and __size__=input size. |
1 | The PhpWiki programming team | 25 | ;__edit__: Accepts __version__. |
26 | ;__remove__: Accepts __verify__. | ||
27 | ;__save__: Accepts __editversion__, __minor_edit__, and __content__. | ||
28 | ;__setprefs__: Accepts __edit_area_width__, __edit_area_height__. | ||
29 | |||
30 | !! Writing Magic Links in Wiki Pages | ||
31 | |||
32 | A magic link looks like: | ||
33 | |||
34 | __[[__ ''text'' __|__ ''phpwiki-url'' __]__ | ||
35 | |||
36 | The "''text'' __|__" is optional but usually recommended. | ||
37 | If given it will provide the label for the link. | ||
38 | |||
39 | The ''phpwiki-url'' is a __phpwiki:__ URL as described above. | ||
40 | |||
41 | !Some examples | ||
42 | |||
43 | [[ Edit the !SandBox | phpwiki:!SandBox?action=edit ] | ||
44 | will generate a link which will take you directly to editing the SandBox, like so: | ||
45 | [ Edit the SandBox | phpwiki:SandBox?action=edit ]. | ||
46 | |||
47 | Other possibilites: | ||
48 | * [ Diff the SandBox | phpwiki:SandBox?action=diff ], | ||
49 | * [ Lock the HomePage | phpwiki:HomePage?action=lock ], | ||
50 | * [ Get a Full Zip Dump | phpwiki:?action=zip&include=all ], | ||
2 | The PhpWiki programming team | 51 | * Search for [ Page titles containing 'wiki' | phpwiki:?action=TitleSearch&s=wiki ] |
1 | The PhpWiki programming team | 52 | |
53 | !! Writing Magic Forms in Wiki Pages | ||
54 | |||
2 | The PhpWiki programming team | 55 | ''__Note__: The old syntax for Magic forms is no longer supported. They are superceded by <''''?plugin-form>s.'' |
56 | |||
57 | If the plugin is called using __<''''?plugin-form__ instead of __<''''?plugin__ and the plugin supports searching, then it will be rendered as a form. | ||
58 | |||
59 | ;''size'': If given, specifies the size of the input area. | ||
60 | ;''s'': Specifies the default value for the input. | ||
61 | |||
62 | Examples: | ||
63 | |||
64 | A search plugin invoked with __<''''?plugin__ instead of __<''''?plugin-form__ simply inserts the search results of the plugin: | ||
65 | <?plugin TitleSearch s=wiki noheader=true ?> | ||
66 | |||
67 | Search results for Page titles containing 'wiki': | ||
68 | <?plugin TitleSearch s=wiki noheader=true ?> | ||
69 | |||
70 | |||
71 | <?plugin-form FullTextSearch ?> | ||
72 | gives | ||
73 | <?plugin-form FullTextSearch ?> | ||
74 | |||
75 | While | ||
76 | <?plugin-form TitleSearch formsize=12 ?> | ||
77 | yields | ||
78 | <?plugin-form TitleSearch formsize=12 ?> | ||
79 | |||
1 | The PhpWiki programming team | 80 | ---- |
81 | PhpWikiDocumentation |
lib/blame.php:177: Warning: Invalid argument supplied for foreach()