1 Date: Fri, 10 Sep 2010 13:46:13 +0000
2 Mime-Version: 1.0 (Produced by PhpWiki 1.4.0)
3 Content-Type: application/x-phpwiki;
4 pagename=Help%2FCreatePagePlugin;
5 flags=PAGE_LOCKED%2CEXTERNAL_PAGE;
8 Content-Transfer-Encoding: binary
10 The **~CreatePage** [[Help:WikiPlugin|plugin]] allows to easily create new pages, optionally with default content.
12 This allows you to create a page geting the new pagename from a
13 forms-based interface, and optionally with the initial content from
16 Put a {{{<?plugin-form CreatePage ?>}}} at some page, browse this page,
17 enter the name of the page to create, then click the button.
22 <?plugin-form CreatePage ?>
23 <?plugin-form CreatePage template=CategoryHomePage ?>
24 <?plugin-form CreatePage template=SomeTemplatePage vars="year=2004&name=None" ?>
36 | The pagename, which will passed to the plugin.
40 | The new page will be pre-filled with this content.
44 | The new page will be pre-filled with the content of this page.
48 | Variables to be expanded.
52 | Whether to overwrite an existing page.
56 == Variable Expansion ==
58 The content (either initial_content or template) might hold some variables, which will be
59 expanded on creation. Unassigned variables will stay as %%<var>%%, assigned variables without
60 matching %%<var>%% placeholder will be ignored, without any warning.
62 A variable in a template is denoted as ##%%var%%##, which will be expanded by the
63 value of ##var## given to the vars argument (in urlencoded php notation).
65 Some special variables are automatically assigned:
68 | %%ctime%% || $~WikiTheme->formatDateTime(time())
70 | %%author%% || $user->getId()
73 This forms together with page templates and the [[Help:WikiFormRichPlugin]] and
74 optionally the [[Help:SqlResultPlugin]] a framework to create templated pages.
78 * [[PhpWiki:ReiniUrban|Reini Urban]]
83 <?plugin-form CreatePage s=MyHomePage ?>
85 <?plugin-form CreatePage s=MyHomePage ?>
88 * [[PhpWiki:EasilyCreateNewPages]]
89 * [[Help:WikiFormRichPlugin]]
90 * [[Help:SqlResultPlugin]]
94 [[PhpWikiDocumentation]] [[CategoryWikiPlugin]]