For a couple of plugins I’m working on, I want to add an
<input> field in the configuration page with “color” as a type.
At the moment, to create a text
<input> field one can use the helper FormText.php, but that comes with a fixed “text” type.
What’s the best solution to create a color (or any other type) field, then?
Easiest way could be to make the FormText.php open (via parameter) to different types, but that would mean changing the core (I’ve just submitted a pull request for it); so, in the meantime, what’s the best course of action?
Thanks in advance.