Create Page Plugin
avg: 0.0 (0 ratings)
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 initial_content="The page you just created is in the ~~[Soda] category." ?>
<?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: "" You can give plugin parameters to this argument in []s, and they are parsed. Currently, there are not many useful plugin parameters (just [pagename]). However, then to refer to another page using []s, you must quote it with ~ as shown above. |
| 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
