Afficher la Source HistoriqueDeLaPage Diff InfosSurLaPage 
Plugin Wiki

Les derniers hacks incluent le support de !Plugins Wiki?.

Wiki Plugins? allow one to easily add new types of dynamic content (as well as other functionality) to

wiki pages within Php Wiki. In this very wiki, the Recent Changes, Back Links?, Like Pages? and Debug Info pages are all implemented using plugins. I expect that the search result pages, as well as much Php Wiki Administration? will soon be implemented via plugins as well. (I think the oh-so-ugly Magic Php Wiki URLs? can be replaced by plugins, too.)

Example

Currently, one invokes a plugin by putting something like
<?plugin !Back Links??>

into a regular wiki-page. That particular example produces as list of pages which link to the current page. Here it is:

(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.)

Details

(This is all subject to change.)

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 plugin invocation can specify the value for an argument, like so:

    <?plugin !Back Links? page=!Other Page? ?>
  2. The argument can be specified via an HTTP query argument. This doesn't happen (is not allowed) unle

ss the argument is mentioned in the plugin invocation:

;
<?plugin !Back Links? page ?>
  1. Default values specified in the plugin invocation:

    <?plugin !Back Links? page||=!Other Page? ?>
  2. The plugin must supply default values for each argument it uses. (The Back Links? plugin uses

the current page as the default value for the page argument.

Existing Plugins

More Ideas for Plugins

  • Integrate Search form with individual Inter Wiki map entries
    e.g. Search Php Website for:[ ] (Search)
  • Wanted Pages, Orphaned Pages?, other various indexing schemes.
  • Diff, Page History
  • Redirect plugin -- <?plugin Redirect target=!Other Page? ?>
  • 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.

Pages in this category:

  • Full Text Search?: Find Page?
  • Title Search: Like Pages? (match_head, match_tail).

Documentation De Php Wiki

Dernière modification le dimanche 31 août 2003 16:47:10