Learn about DokuWiki
Advanced Use
Corporate Use
Our Community
Follow us on Facebook, Twitter and other social networks.
Learn about DokuWiki
Advanced Use
Corporate Use
Our Community
Follow us on Facebook, Twitter and other social networks.
Compatible with DokuWiki
Similar to catlist, copypage, new_page_dialog, npd, pagehere
Tagged with button, create, form
Needed for autoincludeindex
Search and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.
This plugin allows you to add new-page forms to wiki pages, so that users can simply enter the title of a new page and go straight to the editing form (rather than first creating a link to the page, or typing the URL directly).
The target namespace for the new page can either be selected from a drop-down list in the new-page form, or specified in the form syntax. Only namespaces to which the user is permitted to write are shown.
The form submit button is disabled if there is no text in the title field.
Put {{NEWPAGE}} anywhere in a wiki page to get a new-page-title text entry box, and a namespace selection drop-down menu. More details in the Syntax section below.
The basic syntax is:
{{NEWPAGE}}
Or, to specify a namespace:
{{NEWPAGE>namespace}}
Where namespace is the target namespace for the new page.
When this is specified, the namespace selection box can either be hidden (which it is by default) or set to show only sub-namespaces of the given one.
This is configured in the main wiki configuration manager.
If @PAGE@ (or @NS@) is given, the current page ID (or its namespace) will be used (e.g. for use in namespace templates; see below).
This plugin is also compatible with the New Page Template plugin (note that this is a separate feature to the namespace templates described below). To specify a template to be used with the new page, use one of the following syntaxes:
{{NEWPAGE#newtpl}} | Use the newtpl template |
{{NEWPAGE#newtpl1,newtpl2}} | Present a drop-down list of newtpl1 andnewtpl2, allowing the user to choose one |
{{NEWPAGE#newtpl1|Title One,newtpl2|Title Two}} | The same as above, but with nicer titles |
In all of these, the basic >namespace syntax can be included before the hash # character.
The {{NEWPAGE}} syntax may be added multiple times on the same page.
To include an add-new-page form in a Site Template, use the following line:
<?php echo p_render('xhtml',p_get_instructions('{{NEWPAGE}}'),$info) ?>
Add-new-page forms can also be added to Namespace Templates. The replacement patterns @ID@ and @NS@ can be used in the plugin's namespace parameter.
You can configure the plugin in the Config Manager of DokuWiki. There are four settings:
wiki;playground.Is there a possibility to add the plugin as a part of the admin page, like the plugins pagemove or upgrade?
Not currently, but this can be done by modifying your template and including the addnewpage form only when$ACT=='admin'
Is it possible to have more than one new-page form on a page?
Yes. Nothing special needs to be done to permit this, just add the markup wherever you want the forms to appear.
Please report all bugs and feature requests through the issue-tracking system on Github. Items of general interest should be added to the FAQ above.
The ten most recent changes:
A full list can be found on Github.
This plugin is based on the 'old addnewpage' plugin, and forked from that one after the 2009-02-14 release of Dokuwiki.
Changes from before development was moved to Github:
plugin:addnewpage_old
And from when this plugin was addnewpage_old: