Hi,
I'm toying with an idea about limiting the options in the editor so that including a formulary can only be done once (and with predefined values) and the fields in it can only have a name selected from a certain set. I'm guessing it shouldn't be to difficult but in order to avoid having to look around the whole code I was hoping for some pointers to the right direction.
Thanks for your help,
Alejandro Castillo
I'm toying with an idea about limiting the options in the editor so that including a formulary can only be done once (and with predefined values) and the fields in it can only have a name selected from a certain set. I'm guessing it shouldn't be to difficult but in order to avoid having to look around the whole code I was hoping for some pointers to the right direction.
Thanks for your help,
Alejandro Castillo
Re: Help with limiting formulary options
I'm not exactly sure what you're aiming at, but I think I understand. Let me rephrase and see if I have it right: you want to limit the editor functionality so that users can only create a single FORM, and that that FORM has certain parameters set and unalterable (e.g. action, method, possibly name and id). You then want them to be able to add only certain fields from a list.

Limiting the editor functionality isn't too hard - edit your config file down to the bare minimum requirements.
You'd have to create a custom button for the FORM that pre-fills all of the appropriate values - that is probably one of the simplest cases of plug-in programming you could attempt - see the API documentation section on programming plug-ins for some starters.
For the last part, if you're interested I could probably get permission to release some version of a plug-in I wrote to insert pre-named, pre-formatted fields into a form. The list dynamically updates to check fields already on the form vs. fields in the list, so each field can be added once and only once. (Technically, as written, the plug-in also screens for fields that shouldn't exist on a form and flags them for removal by the user.)
Get the first two done first, then send me a PM - I'll see if I can't get permission to release the plug-in for public use in some form. Or tell me that this isn't really what you were thinking of...
Re: Help with limiting formulary options
Castillo