[pmwiki-users] mod EditForm to parse certain directives and preprend them to the content after submitting

Petko Yotov 5ko at 5ko.fr
Sat Nov 5 10:58:05 CDT 2011

On Saturday 05 November 2011 10:51:44 a.sonderhoff at gassi-tv.de wrote:
> noticed though, that there is a major bug in the recipe when handling
> checkboxes. it will only set the PTV to 1 once. if you want to set it to 0
> again, it will ignore the unchecked checkbox leaving the PTV on a value of
> 0. also the recipe does not work with radiobuttons, select lists, etc
> without using a hidden helper form field and implementing all additional
> functionality with javascript hacks.

You may contact Eemeli (the author) on the talk page or via e-mail: he may be 
able to improve the recipe, which probably was designed to handle text fields. 
(When a checkbox is cleared, the browser doesn't submit the empty field, so 
the recipe somehow needs to be notified that a field should be changed even if 
the browser sent nothing.)


> From: Petko Yotov <5ko at 5ko.fr>
> > Hello. The EditAttributes recipe can be configured to do such additional
> > form fields, and it works even with existing pages.
> > 
> >  http://www.pmwiki.org/wiki/Cookbook/EditAttributes
> > 
> > While editing, it removes the (:title ... :), (:myPTV: ... :) and other
> > configured strings from the page text and places them in additional text
> > boxes (not sure if it can do drop-down select lists). After submitting
> > the changes, it compiles the page again, with all variables at the end
> > of the page text.

More information about the pmwiki-users mailing list