1 Date: Fri, 10 Sep 2010 13:46:13 +0000
2 Mime-Version: 1.0 (Produced by PhpWiki 1.4.0RC1)
4 Content-Type: application/x-phpwiki;
5 pagename=Help%2FCreatePagePlugin;
6 flags=PAGE_LOCKED%2CEXTERNAL_PAGE;
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" ?>
37 | The pagename, which will passed to the plugin.
41 | The new page will be pre-filled with this content.
45 | The new page will be pre-filled with the content of this page.
49 | Variables to be expanded.
53 | Whether to overwrite an existing page.
57 == Variable Expansion ==
59 The content (either initial_content or template) might hold some variables, which will be
60 expanded on creation. Unassigned variables will stay as %%<var>%%, assigned variables without
61 matching %%<var>%% placeholder will be ignored, without any warning.
63 A variable in a template is denoted as ##%%var%%##, which will be expanded by the
64 value of ##var## given to the vars argument (in urlencoded php notation).
66 Some special variables are automatically assigned:
69 | %%ctime%% || $~WikiTheme->formatDateTime(time())
71 | %%author%% || $user->getId()
74 This forms together with page templates and the [[Help:WikiFormRichPlugin]] and
75 optionally the [[Help:SqlResultPlugin]] a framework to create templated pages.
79 * [[PhpWiki:ReiniUrban|Reini Urban]]
84 <?plugin-form CreatePage s=MyHomePage ?>
86 <?plugin-form CreatePage s=MyHomePage ?>
89 * [[PhpWiki:EasilyCreateNewPages]]
90 * [[Help:WikiFormRichPlugin]]
91 * [[Help:SqlResultPlugin]]
95 [[PhpWikiDocumentation]] [[CategoryWikiPlugin]]