[pmwiki-users] "Add Page" Recipe?

Nils Knappmeier nk at knappi.org
Thu Mar 10 00:54:53 CST 2005


Radu wrote:

> Hmmm...
>
> Methinks that one of the beauties of the wiki way is that pages are 
> not created automatically, but only when someone has something to put 
> in a given page.
>
> There's no 'orphaned link' involved. Just a request to edit the new page.
>
> Or maybe I didn't get your point.

It might be useful to create pages without link, if you want to use only 
the (:pagelist:) markup to link to them.

Markup('createpage','directives','\(\:createpage\:\)','<form 
action="$ScriptUrl"> <input type="text" name="n" value="NameOfThePage" 
/> <input type="submit" name="submit" value="Create" /> </form>');

should create a markup (:createpage:) that resolves into a form allowing 
you to enter the page name and creating the page directly.
Since this is pretty static, you might be able to integrate the form 
into the Skin directly as well.

Nils




More information about the pmwiki-users mailing list