[pmwiki-users] How to do template variable substitution when creating a new page via a form

Randy Brown randy at brownragfilms.com
Mon Mar 30 17:55:48 CDT 2009


I've used the Powertools recipe to create a form through which a user  
can create a new page, but I apparently don't know how to replace the $ 
$variables in the page's template.

My form looks something like this:

(:fox nlform template=Form.MyTemplate:)
NewPageName: {$$(serialname MyGroup MyPageBaseName- )}
(:input hidden target '{Form.MyForm$:NewPageName}':)
(:input hidden pagename 'NewPageName':)
(:input text pagetitle size=40:)
(:input submit post "Submit":)
(:input end:)
(:foxend nlform:)

The MyTemplate page contains:

(:title $$pagetitle:)
PageName: $$pagename

Does the Powertools recipe not handle $$variable substitution, or am I  
doing something wrong?

Randy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20090330/507aba5d/attachment.html 


More information about the pmwiki-users mailing list