Penguin
Annotated edit history of WikiPlugin version 8, including all changes. View license author blame.
Rev Author # Line
8 AristotlePagaltzis 1 WikiPlugins allow one to easily add new types of dynamic content (as well as other functionality) to wiki pages within PhpWiki. In this very wiki, the RecentChanges, BackLinks, LikePages and DebugInfo pages are all implemented using plugins.
1 The PhpWiki programming team 2
3 !Example
4
5 Currently, one invokes a plugin by putting something like:
6 AristotlePagaltzis 6
8 AristotlePagaltzis 7 <verbatim>
8 <?plugin BackLinks?>
9 </verbatim>
1 The PhpWiki programming team 10
8 AristotlePagaltzis 11 into a regular wiki-page. That particular example produces as list of pages which link to the current page. Here it is:
1 The PhpWiki programming team 12
13 <?plugin BackLinks?>
14
8 AristotlePagaltzis 15 (This is great for Category and Topic pages. You can use this to get an automatic in-line listing of pages in the Category or Topic.)
1 The PhpWiki programming team 16
17 !Details
18
8 AristotlePagaltzis 19 Plugins can take certain named arguments (most do). The values of these arguments can be determined four different ways. In order of precedence:
1 The PhpWiki programming team 20
7 The PhpWiki programming team 21 # The plugin invocation can specify the value for an argument, like so:
8 AristotlePagaltzis 22
23 <verbatim>
24 <?plugin BackLinks page=OtherPage ?>
25 </verbatim>
26
27 # The argument can be specified via an HTTP query argument. This doesn't happen (is not allowed) unless the argument is mentioned in the plugin invocation:
28
29 <verbatim>
30 <?plugin BackLinks page ?>
31 </verbatim>
32
7 The PhpWiki programming team 33 # Default values specified in the plugin invocation:
8 AristotlePagaltzis 34
35 <verbatim>
36 <?plugin BackLinks page||=OtherPage ?>
37 </verbatim>
38
39 # The plugin must supply default values for each argument it uses.
1 The PhpWiki programming team 40
41 !Existing Plugins
8 AristotlePagaltzis 42
43 Some of these plugins are documented on their respective pages. In other cases, look at the page source to see how to use it.
44
1 The PhpWiki programming team 45 * BackLinks
46 * CalendarPlugin
47 * DebugInfo
7 The PhpWiki programming team 48 * FullTextSearch
1 The PhpWiki programming team 49 * LikePages
50 * MostPopular
2 CraigBox 51 * PageHistory
1 The PhpWiki programming team 52 * RecentChanges
53 * text2png
7 The PhpWiki programming team 54 * TitleSearch
1 The PhpWiki programming team 55 * walkabout
6 AristotlePagaltzis 56
1 The PhpWiki programming team 57 -----
58 PhpWikiDocumentation

PHP Warning

lib/blame.php:177: Warning: Invalid argument supplied for foreach() (...repeated 7 times)