[pmwiki-users] zap multiple if's

Benoit Dutilleul benoit.dutilleul at googlemail.com
Tue Dec 4 09:07:03 CST 2007


2007/12/4, noskule <noskule at gmx.net>:
>
> hi list
> I use zap for a comment's and want to add a honeypot mechanism:
>
> I have to save data in 2 pages, which is working fine:
>
> (:zap datapage_1="{*$FullName}"  CommentForm:)
> (:zap savedata_1="timelastaction,countcomments,Status"  CommentForm:)
>
> (:zap datapage_2="{*$FullName}-Comment-{countcomments}" CommentForm:)
> (:zap
>
> savedata_2="pagetype,timecreated,Livecycle,Title,Text,AuthorName,AuthorContact"
> CommentForm:)
>
>
>
> know the same with the honepot mechanism, here only savedata_2 works but
> not savedata_1. Does anyone see what's wrong?
>
> (:zap datapage_1="{*$FullName}"  CommentForm:)
> (:zap if=" equal {Comment} '' ?
> savedata_1=timelastaction,countcomments,Status"  CommentForm:)
>
> (:zap datapage_2="{*$FullName}-Comment-{countcomments}" CommentForm:)
> (:zap if=" equal {Comment} '' ?
>
> savedata_2=pagetype,timecreated,Livecycle,Title,Text,AuthorName,AuthorContact"
> CommentForm:)
>
> thanks for any hints nos
>
> _______________________________________________


Hello noskule,

If you use several zap "if" entries, you need to identify them with an
integer (e.g. if1, if2, etc).
Please correct this and let me know whether that works.
Kind regards,

Benoit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20071204/9e72204e/attachment.html 


More information about the pmwiki-users mailing list