[pmwiki-users] Automatically create new sites

Hans design5 at softflow.co.uk
Sun Feb 8 09:16:41 CST 2009


Sunday, February 8, 2009, 1:40:47 PM, Peter Lutz wrote:

> Create a link that automatically adds a new page to an existing
> group. The new page has a number as name and adding a page sets the
> next number in count. (example.n --> example.n+1)

You could use a button?

See http://www.pmwiki.org/wiki/Cookbook/EditTemplates
about templates for new pages. There is also a form example, which
you could change a bit to your purpose.

See http://www.pmwiki.org/wiki/Cookbook/PowerTools#serialname
for a serialname and a serial markup expression, as part of the
PowerTools collection of expressions.

Install powertools.php and try something like this:

(:input form :)
(:input hidden action edit:)
(:input hidden template MyTemplates.NewPageTemplate:)
(:input hidden pagename "{(serialname Test Name- )}":)
(:input submit create "Create new page":)
(:input end:)


  ~Hans




More information about the pmwiki-users mailing list