1 Date: Sun, 10 Feb 2002 21:03:46 +0100
2 Mime-Version: 1.0 (Produced by PhpWiki 1.3.2-jeffs-hacks)
3 X-Rcs-Id: $Id: PluginWiki,v 1.1 2002-02-12 20:18:35 carstenklapp Exp $
4 Content-Type: application/x-phpwiki;
7 pgsrc_version="2 $Revision: 1.1 $";
10 Content-Transfer-Encoding: binary
12 Les derniers hacks incluent le support de !PluginsWiki.
14 !WikiPlugins allow one to easily add new types of dynamic content (as well as other functionality) to
15 wiki pages within PhpWiki. In this very wiki, the RecentChanges, BackLinks, LikePages and DebugInfo
16 pages are all implemented using plugins.
17 I expect that the search result pages, as well as much PhpWikiAdministration will soon be implemented
18 via plugins as well. (I think the oh-so-ugly [MagicPhpWikiURLs] can be replaced by plugins, too.)
22 Currently, one invokes a plugin by putting something like:
24 <?''''plugin !BackLinks?>
26 into a regular wiki-page. That particular example produces as list
27 of pages which link to the current page. Here it is:
31 (This is great for Category and Topic pages. You can use this to get
32 an automatic in-line listing of pages in the Category or Topic.)
36 (This is all subject to change.)
38 Plugins can take certain named arguments (most do).
39 The values of these arguments can be determined four different ways.
40 In order of precedence:
41 # The plugin invocation can specify the value for an argument, like so:
42 ;;: <?''''plugin !BackLinks page=!OtherPage ?>
43 # The argument can be specified via an HTTP query argument. This doesn't happen (is not allowed) unle
44 ss the argument is mentioned in the plugin invocation:
45 ;;: <?''''plugin !BackLinks page ?>
46 # Default values specified in the plugin invocation:
47 ;;: <?''''plugin !BackLinks page||=!OtherPage ?>
48 # The plugin must supply default values for each argument it uses. (The BackLinks plugin uses
49 the current page as the default value for the ''page'' argument.
66 !More Ideas for Plugins
67 * Integrate Search form with individual InterWiki map entries%%%
68 e.g. Search Php Website for:[ ] (Search)
69 * WantedPages, OrphanedPages, other various indexing schemes.
71 * Redirect plugin -- <?''''plugin Redirect target=!OtherPage ?>
72 * Insert XML/RSS/RDF news content from location=xxx where location is a parameter to the plugin, maybe include some formatting control of the output generated.
74 Pages in this category:
75 <?plugin BackLinks page=[pagename] noheader=1?>
77 * FullTextSearch: FindPage
78 * TitleSearch: LikePages (match_head, match_tail).
81 DocumentationDePhpWiki