It would be useful to have more edit control for forms e.g. a multi-value selector for user names, useful for
UsingFormsForSettings.
I think this is best done by a new Plugin hook. My initial suggestion is:
renderFormFieldForEditHandler' # ( $name, $type, $size, $value, $attributes, $output )
Probably also need a function to cut in when data is saved.
What do people think? Also it would be nice for the plugin to know if the client uses Javascript, anyone know of a clean way to do this? One nasty way might be for Javascript to cut in and re-request page, so start with a control that doesn't require Javascript, but if it's present, bring up a page with Javascript. If a Session is being used (
SessionPlugin) then this step would only need to be done once
--
JohnTalintyre - 24 Mar 2002
This is now in CVS (alpha release), with a plugin that shows some of the ideas at
FormFieldsPlugin
There's some good ideas in this, but much more to do, especially as my Javascript and UI design skills are both somewhat suspect
--
JohnTalintyre - 04 Jun 2003
Bumping Feature topic marked as Scheduled for
CairoRelease that hasn't been modified recently.
--
SamHasler - 20 Apr 2004
I have a more major change in mind for post Cairo - I need to be able to define Forms elemenst that are active in view mode (rather than just in edit mode).
I'm voting for postponing this task to Dakar for now.
--
SvenDowideit - 21 Apr 2004
This has been implemented for many months (see comment on 4-Jun-2003) - docs showing at 0 was mis-leading.
--
JohnTalintyre - 22 Apr 2004
Should the
TopicClassification be changed to
DocsToDo?
--
SamHasler - 22 Apr 2004
Need to move (from Codev) and reformat docs.
--
JohnTalintyre - 23 Apr 2004
does anyone want to help docco this? (John is otherwise occupied) --
SvenDowideit - 24 Jun 2004
I can do this... (
Question and suggestions on how to document moved to HowToDocument) Note that personally I think this feature is not quite done, as we also need some way of hooking this into the final expanding of tags (see discussions re
FormFieldsPluginDev). --
ThomasWeigert - 24 Jun 2004
Thomas - Cool, thanks in advance. Also, please expand on anything that remains to be done

(I need to track down what you mean)
--
SvenDowideit - 27 Jun 2004
Sven, the shortcoming, I think, with this code is as demonstrated in
FormFieldsPlugin where it was attempted to be used. Well, actually it is not in
renderFormFieldForEditHandler but in that this handler is not enough. A plugin that wants to affect forms does has access to the text outside of the body only when it executed
commonTagsHandler, but at this time we have not yet examined the form fields. This is a problem, as the
renderFormFieldForEditHandler may determine something about the form fields that requires some global change. E.g., in
FormFieldsPlugin should add
JavaScript to the top of the page if certain conditions about the form fields are true.
To duplicate from what I said in
FormFieldsPluginDev, I think it would be good if there were a generic mechanism that allowed Plugins to add Javascript that would then be added in the appropriate place later. E.g., two functions:
- addScript adds Javascript to be later added to the topic
- emitScript is called in View.pm, Edit.pm, etc. and inserts any Javascript that might have been added in the hidden section of the page.
--
ThomasWeigert - 27 Jun 2004
Thomas, can we at least get the current state of play documented so we can release Cairo and move on? At this late stage adding new handler mechanisms is only going to stall Cairo further. Please?
--
CrawfordCurrie - 03 Jul 2004
Crawford, so sorry, I did not mean that above should hold up the release. Getting Cairo out of the door is paramount. I will try to have the doc done over the weekend/holiday.
--
ThomasWeigert - 03 Jul 2004
Crawford, can you please help me from here... I attached the documentation proposal to this page. Could you please add it to the code, as I don't think I have rights to do so. Thanks...
--
ThomasWeigert - 06 Jul 2004
Thomas, I would if I could, but I don't have any more rights than you.
Sven? Peter?
--
CrawfordCurrie - 06 Jul 2004
Me

yes - it looks bloody marvelous. Thomas you can docco anything, anytime

Commited into
SVN.
--
SvenDowideit - 06 Jul 2004
I removed the "scheduled for
CairoRelease" since this topics has no specific title, has several discussion topics, and since the new plugin callback feature is documented in
RenderFormFieldForEditHandler.
--
PeterThoeny - 08 Aug 2004