Source for file data.alias.php
Documentation is available at data.alias.php
* @subpackage plugins_data
* @copyright Copyright (c) 2004, bitweaver.org
define( 'PLUGIN_GUID_DATAalias', 'dataalias' );
'auto_activate' => FALSE,
'requires_pair' => FALSE,
'load_function' => 'data_alias',
'help_page' => 'DataPluginAlias',
'description' => tra( "This plugin allows you to easily create an alias for a page." ),
'help_function' => 'data_alias_help',
'syntax' => "{alias page='title'}",
'<table class="data help">'
. '<th>' . tra( "Key" ) . '</th>'
. '<th>' . tra( "Type" ) . '</th>'
. '<th>' . tra( "Comments" ) . '</th>'
. '<td>' . tra( "page" ) . '</td>'
. '<td>' . tra( "string") . '<br />' . tra( "(required)" ) . '</td>'
. '<td>' . tra( "The name of any other wiki page." ) . '</td>'
. tra( "Example: " ) . "{alias page='Welcome'}";
function data_alias( $pData, $pParams, $pCommonObject ) {
require_once(WIKI_PKG_PATH. "BitPage.php");
foreach( $pParams as $key => $value ) {
|