[pmwiki-users] Can any of the form recipes do this?
Hans
design5 at softflow.co.uk
Mon Apr 2 12:08:29 CDT 2007
Monday, April 2, 2007, 5:00:50 PM, Scott wrote:
> Name: [name of page]
> Group: [name of group]
> Section 1: [data of the first section of description]
> Section 2: [data of the second section of description]
> Section 3: [data of the third section of description]
> Submit Button: save all the data as a new page without editing the page first.
with Fox create a Fox form:
(Description data as any kind of page text variable)
Data1: oneblabla
Data2: twotwo
Data3: threethreeblabla
(:fox form1 redirect=1:)
Page name: (:input text target "":)\\
Group name: (:input text foxgroup "Test":)
(:input hidden data "{$:Data1}{$:Data2}{$:Data3}":)
(:foxtemplate "(:Description {data}:) {$Description}":)
(:input submit post "Create New Page":)
(:foxend form1:)
and make sure you allow posting to the groups you intend to, by adding
a pattern to $FoxNameFmt, for instance allow to post to groups whose
group name begins with "Test":
$FoxNameFmt[] = 'Test*.*';
redirect=1 will redirect to the new page after the page was saved.
~Hans
More information about the pmwiki-users
mailing list