[pmwiki-users] New recipe: Fox

Hans design5 at softflow.co.uk
Tue Dec 19 11:24:38 CST 2006


Tuesday, December 19, 2006, 3:10:33 PM, marc wrote:

> Have you tried it on a clean PmWiki install yourself?

Yes. Latest pmwiki, No recipes except fox.php.
No special setings, no author or authuser.
Works okay, both on local Windows XP machine with WAMP server, and on
hosting service public server (I think they run on Linux).
Very weird, as you seem to be the only one having  a problem
with saving pages.

Try and copy the NewPageBox example into a new page:

'''NewPageBox opens new page in edit mode'''
If page exists it will jump to target page.

(:fox box1 #top redirect=1 :)
(:input text newedit value="Test" size=20:)(:input submit post "New Page":)
(:foxend box1:)

'''NewPageBox saves new page with template string inserted'''
If page exists it will append template string to existing target page.

(:fox box2 #top redirect=1 :)
(:input text target value="Test" size=20:)(:input submit post "New Page":)
(:foxtemplate "'''New Page'''":)
(:foxend box2:)

First box does not use UpdatePage function of pmwiki 2.2.0,
Second one does.


Hans





More information about the pmwiki-users mailing list