[pmwiki-users] Semantic/Syntax question...

The Editor editor at fast.st
Thu May 17 17:02:44 CDT 2007


I'm trying to work through a semantic/syntax question and I thought I
would ask for some input...

Currently I have three different kinds of special variables and I'm
looking for the right syntax for them.

Field Replacements:  This pulls values from one field into another
field in a ZAP form.  Currently I'm using {field}. Pm has recommended
changing this.

Template Insertions:  Takes field values and inserts into a template.
Currently I'm using {$$field}

Email Merge:  The new email merge capabilities can insert both field
values and PTV's from a users profile page into an email template.
Currently I'm using {$$field} for the form values and {field} for
profile values.

In the best of all possible worlds, any input on what would be the
best syntax for these three kind of variables? The best to me,
semantically are the following:

{=field} for a field replacement
{+field} for a template insertion
{~field} for a profile insertion

I imagine this last markup could be extremely useful in various
situation for those using ZAP's membership system as you could just
write {~Email} anywhere in the wiki and it could automatically be
translated into that particular users Email address, or whatever...
Hmmm...

Cheers,
Dan



More information about the pmwiki-users mailing list