Date: Fri, 7 Dec 2012 14:58:45 +0000 Mime-Version: 1.0 (Produced by PhpWiki 1.4.0) Content-Type: application/x-phpwiki; pagename=Help%2FCreatePagePlugin; flags=PAGE_LOCKED%2CEXTERNAL_PAGE; markup=2; charset=UTF-8 Content-Transfer-Encoding: binary The **~CreatePage** [[Help:WikiPlugin|plugin]] allows to easily create new pages, optionally with default content. 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 {{{}}} at some page, browse this page, enter the name of the page to create, then click the button. == Usage == {{{ }}} == Arguments == {| class="bordered" |- ! Argument ! Description ! Default value |- | **s** | The pagename, which will passed to the plugin. | |- | **initial_content** | The new page will be pre-filled with this content. | |- | **template** | The new page will be pre-filled with the content of this page. | |- | **vars** | Variables to be expanded. | |- | **overwrite** | Whether to overwrite an existing page. | |} == Variable Expansion == The content (either initial_content or template) might hold some variables, which will be expanded on creation. Unassigned variables will stay as %%%%, assigned variables without matching %%%% placeholder will be ignored, without any warning. A variable in a template is denoted as ##%%var%%##, which will be expanded by the value of ##var## given to the vars argument (in urlencoded php notation). Some special variables are automatically assigned: {| class="bordered" |- | %%ctime%% || $~WikiTheme->formatDateTime(time()) |- | %%author%% || $user->getId() |} This forms together with page templates and the [[Help:WikiFormRichPlugin]] and optionally the [[Help:SqlResultPlugin]] a framework to create templated pages. == Authors == * Dan Frankowski * [[Help:Reini Urban|Reini Urban]] == Examples == {{{ }}} == See Also == * [[PhpWiki:EasilyCreateNewPages]] * [[Help:WikiFormRichPlugin]] * [[Help:SqlResultPlugin]] ---- [[PhpWikiDocumentation]] [[CategoryWikiPlugin]]