Loading...
 

Plugin Page (PluginPage)

This plugin checks what page you are on, and if it matches to the passed-in parameter, the data portion is displayed on the wiki page.

Usage

The PAGE plugin usage is:

Copy to clipboard
{PAGE(page=pagename) /}data{PAGE}

Example:

Copy to clipboard
{PAGE(page=Guard)}{REDIRECT(page=Home) /}{PAGE}

Explanation of above Example:
The PAGE plugin tests if the user is on wiki page named "Guard"; if so, the user is redirected to the Home page.

Actual code from the plugin (lib/wiki-plugins/wikiplugin_page.php):

Copy to clipboard
function wikiplugin_page($data, $params) { global $page; if ($page == $params['page']) { return $data; }


Note:

Plugin Manager error: page plugin not found

Related pages

Alias

List Slides