User tests: Successful: Unsuccessful:
This is a patch for the following tracker item:
http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=29484
I think that's a great idea.
Closing this because it's not mergeable anymore and the solution is still being discussed. Feel free to reopen it if you update the code.
Thanks for contributing!
Hi
I think this could be made more generic, and prepare for future improvement. For instance:
1 - add a type param instead of $custom
public static function addFilter($label, $name, $options, $noDefault = false, $type = 'select')
2 - then in layout file:
Note that in the case of real "custom" filter, I think we should not add any markup at all ourselves (ie no ) as this is really up to the caller, and maybe they don't want a label (this could be used to display an help text for instance or something else.
So maybe we also want to add a simple
public static function addCustomFilter( $customFilter)
to let extensions add real raw filter
What do you think?