Summary: Adds a new page using a form
Version: 1.0.9
Prerequisites: Not working with PmWiki 2.2
Maintainer: kt007
Categories: Forms, Obsolete


Adds a new page using a form.


newpageform.phpΔ With this script you can easily create a new page. Put the

(:newpageform:) string on a page and it will generate the form, which will help you to generate new pages. If the "group" field is left blank the new page will be created in "Main".

To use this script, simply copy it into your cookbook/ subdirectory and then add the following line to your configuration file:


Using a dropdown box

The default setting uses an inputbox for the groupname with the standard value "Main". Alternatively you can switch to a drop box. Follow those steps:

  1. on line 42 uncomment //$NewGroup = array('Main', 'PmWiki');
  2. on line 51 uncomment //global $NewGroup;
  3. on line 42 put all the groupnames which have to appear in the dropdown box between the brackets.
  4. On line 58 remove "<td><input type='text' name='group'value='Main'></td></tr>";" and uncomment the section starting on line 59 and ending on line 63. The code to replace "<td><input type='text' name='group'value='Main'></td></tr>";" starts with /* and ends with */

This is not really nice. Unfortunately I will only be able to make a revision of the script in January /February 2005.


Actual Version is 1.0.9


Laurent Meister kt007

See also:

Bugs & Discussion

The script seems not to work with pmwiki 2 beta29.

Doesn't work together with "Titledlinks." After installing this one, TitledLinks" gives only +++ -Han, 04/01/2004

Does it work with versions of pmwiki which have TitledLinks built in?

Doesn't work together with "AlternateNamingScheme". To make it work, you have to type the precise name of the page in the form ie "My_page_with_a_l33t_name" to make it works. Calling the "make pagename function" could make it a lot easierd ... - LeFourbissime 11/01/2005

Doesn't work with spaces in the Page Name

-- Iram 01/12/05

When Edits are password protected, This doesn't work; after submitting a new page, the password is asked for, and then ... nothing. Neither the password is accepted, nor the page submitted. Han, 24 jan 2005

About this one, i also encountered the problem... if the pages are password protected, you have to login before you use the form. If anybody have a workaround, please tell me!

jmi: How do you get a form like (:pitsform:) with many fields that are eventually displayed inside the text field of the new page ?

Could this recipe be merged with: Cookbook.NewPageBox? - Martin Fick


Category: Forms

User notes? : If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki.