Wiki: Create Page Plugin


WikiPlugin to easily create new pages, optionally with default content. Since v1.3.8

This allows you to create a page geting the new pagename from a forms-based interface, and optionally with the initial content from some template.

Put a "<?plugin-form CreatePage ?>" at some page, browse this page, enter the name of the page to create, then click the button.

Usage

     <?plugin-form CreatePage ?>
     <?plugin-form CreatePage template=CategoryHomePage ?>

Plugin Arguments

s: The pagename, which will passed to the plugin. Default: ""
initial_content: The new page will be pre-filled with this content. Default: ""
template: The new page will be pre-filled with the content of this page. Default: ""

Known Problems

None

Plans

The content might hold some variables, which will be expanded on creation. The syntax is not clear yet.

Author

Dan Frankowski

Examples

See also PhpWiki:EasilyCreateNewPages


Sponsored by: Labrat Technology -- Need Consulting Services? Programming, Maintenance, Security, Database Analysis & Design, Hosting -- we do it all!
Copyright 2005 Robert Melton
Send questions and comments to
Last updated March 10th, 2005

PHP Warnings

lib/DB_Session.php:148: Notice[8]: Only variables should be assigned by reference

lib/Template.php:120: Notice[8]: Only variables should be assigned by reference

lib/Template.php:122: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'html'):120: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'html'):122: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'html'):120: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'html'):122: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'body') (In template 'html'):120: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'body') (In template 'html'):122: Notice[8]: Only variables should be assigned by reference

lib/CachedMarkup.php (In template 'browse') (In template 'body') (In template 'html'):464: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'browse') (In template 'body') (In template 'html'):120: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'browse') (In template 'body') (In template 'html'):122: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'actionbar') (In template 'browse') (In template 'body') (In template 'html'):120: Notice[8]: Only variables should be assigned by reference:

lib/Template.php (In template 'actionbar') (In template 'browse') (In template 'body') (In template 'html'):122: Notice[8]: Only variables should be assigned by reference:

lib/Template.php (In template 'body') (In template 'html'):120: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'body') (In template 'html'):122: Notice[8]: Only variables should be assigned by reference