1 Date: Sun, 22 Feb 2009 19:16:30 +0000
2 Mime-Version: 1.0 (Produced by PhpWiki 1.3.14-20080124)
4 Content-Type: application/x-phpwiki;
5 pagename=Help%2FCreatePagePlugin;
9 Content-Transfer-Encoding: binary
11 The *~CreatePage* [[Help:WikiPlugin|plugin]] allows to easily create new pages, optionally with default content.
13 This allows you to create a page geting the new pagename from a
14 forms-based interface, and optionally with the initial content from
17 Put a "<~?plugin-form ~CreatePage ?~>" at some page, browse this page,
18 enter the name of the page to create, then click the button.
23 <?plugin-form CreatePage ?>
24 <?plugin-form CreatePage template=CategoryHomePage ?>
25 <?plugin-form CreatePage template=SomeTemplatePage vars="year=2004&name=None" ?>
31 The pagename, which will passed to the plugin. Default: ""
33 The new page will be pre-filled with this content. Default: ""
35 The new page will be pre-filled with the content of this page. Default: ""
37 variables to be expanded. Default: ""
39 Whether to overwrite an existing page. Default: ""
43 The content (either initial_content or template) might hold some variables, which will be
44 expanded on creation. Unassigned variables will stay as %%<var>%%, assigned variables without
45 matching %%<var>%% placeholder will be ignored, without any warning.
47 A variable in a template is denoted as <tt>%%var%%</tt>, which will be expanded by the
48 value of <tt>var</tt> given to the vars argument (in urlencoded php notation).
50 Some special variables are automatically assigned:
53 $~WikiTheme->formatDateTime(time())
57 This forms together with page templates and the PhpWiki:WikiFormRichPlugin and
58 optionally the PhpWiki:SqlResultPlugin a framework to create templated pages.
62 Dan Frankowski, [Reini Urban|PhpWiki:ReiniUrban]
66 <?plugin-form CreatePage s=MyHomePage ?>
68 See also PhpWiki:EasilyCreateNewPages, PhpWiki:WikiFormRichPlugin, PhpWiki:SqlResultPlugin
72 [[PhpWikiDocumentation]] [[CategoryWikiPlugin]]