[pmwiki-users] Request for feedback on Fox modification

Hans design5 at softflow.co.uk
Sat Sep 29 12:59:38 CDT 2007


Saturday, September 29, 2007, 5:05:55 PM, Hans wrote:

> {$$$name} will be posted as {$$name}, and
> {$$$name[]} will be posted as {$$name[]} (for array fields).
> Even the Fox specific date replacement markup could be treated that
> way, i.e.  {$$$...} will be posted as  {$$...} and no replacements
> made.

I implemented this now in an update to fox.php:
http://pmwiki.org/wiki/Cookbook/Fox

To post replacement variables without them being replaced by a value,
in order for instance to post a fox form defined as a template, use
   {$$$...} instead of {$$...}, i.e.
   {$$$name} instead of {$$name} etc.
in the template.
To be able to post form markup fox needs to have permission to post
directives as well, with
   $EnablePostDirectives = true;

For example one could use a template page for a fox form like

(:fox form1:)
(:input text name:) is (:input select abc[] red:)
(:input select abc[] green:)
(:input select abc[] blue:)(:input submit post Enter:)
(:foxtemplate "{$$$name} is {$$$abc[]} {$$$(date:d.m.Y - H:i)}":)
(:foxend form1:)

You see the various uses of the triple $$$ in the foxtemplate line of the
template.

Comments, suggestions, feedback most welcome!

  ~Hans




More information about the pmwiki-users mailing list