[pmwiki-users] fun with forms

Patrick R. Michaud pmichaud at pobox.com
Thu Apr 19 17:11:47 CDT 2007


On Thu, Apr 19, 2007 at 01:34:06PM -0700, Martin Fick wrote:
> --- "Patrick R. Michaud" <pmichaud at pobox.com> wrote:
> > On Thu, Apr 19, 2007 at 03:13:14PM -0500, Patrick R.
> > Michaud wrote:
> > 
> > Then our input controls would be:
> > 
> >     (:input text $:Summary :)
> >     (:input text $:Version :)
> >     (:input text $:Prerequisites :)
> > 
> 
> Now that's elegant and obvious!  It really highlights
> what is happening.  

Now implemented this way.  

The form itself:
  http://www.pmwiki.org/wiki/Cookbook/RecipeInfoForm?action=source

A page displaying the working form at the bottom:
  http://www.pmwiki.org/wiki/Cookbook/SimpleRating

No more ptvreplace control -- the replacements are
automatically triggered by the presence of any 'ptv_*'
controls, which are themselves generated by the use of
'$:' in an input control name.

Someday we might want a control to disable all
replacements... but I'll wait until then to implement it. :-)

Thanks again!

Pm



More information about the pmwiki-users mailing list