Add user function support to Constant Editor
In addition to the built in form widgets, it would be nice if the Constant Editor supported user functions to allow more custom user interfaces.
This can be accomplished pretty easily with t3lib_div::callUserFunction and a user function that outputs the appropriate HTML.
I'm attaching a patch to add this support. I can also add a small extension that demonstrates this functionality if it would be helpful.
(issue imported from #M6169)
#3 Updated by Jeff Segars over 12 years ago
I've just attached a couple support files for this patch. Two screenshots show the kind of things a userFunc will enable and a demo extension lets you test it out, assuming the patch is already applied.
The demo extension is just that; the link wizard in particular is very rough :)
#6 Updated by Jeff Segars over 12 years ago
Thanks for taking a look at this. I've already attached an example extension has two userFuncs for the Constants Editor.
One populates a selection list from the fe_users table and the other adds the popup link wizard to an input field. The popup link wizard is ugly, ugly code but it should still give an idea of what is possible with the patch.