[pmwiki-users] Can any of the form recipes do this?

The Editor editor at fast.st
Mon Apr 2 12:28:14 CDT 2007


Just for comparison, and probably more what you want:

(:zapform:)
Page: (:input text name:)
Group: (:input text group:)
Description1: (:input text descr1:)
Description2: (:input text descr2:)
Description3: (:input text descr3:)
(:zap nextpage="{group}.{name}":)
(:zap create="{group}.{name}":)
(:zap pagetext="{descr1}{descr2}{descr3}":)
(:input submit post "Create New Page":)
(:zapend:)

Better yet, with a template, do something like:

(:zapform:)
Page: (:input text name:)
Group: (:input text group:)
Description1: (:input text descr1:)
Description2: (:input text descr2:)
Description3: (:input text descr3:)
(:zap nextpage="{group}.{name}":)
(:zap create="{group}.{name}":)
(:zap pagetemplate="Site.NewPage":)
(:input submit post "Create New Page":)
(:zapend:)

Then put on Site.NewPage something like this:

Hi this is {group}.{name}:
*Description1: {descr1}
*Description2: {descr2}
*Description3: {descr3}

PS.  Note create is in the ZAPextend module, so you need that enabled
as well as ZAP.



On 4/2/07, Hans <design5 at softflow.co.uk> wrote:
> 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
>
>
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
>



More information about the pmwiki-users mailing list