Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Possibility to remove filters individually when using the searchtools…
… layout helper Bring up a 'removedFilters' (array) option to the 'searchtools layout helper' that allows to remove/disable filters individually. # Testing To test it you can change the file: administrator/components/com_content/views/articles/tmpl/default.php on line 48: echo JLayoutHelper::render('joomla.searchtools.default', array('view' => $this)); by: echo JLayoutHelper::render('joomla.searchtools.default', array( 'view' => $this, 'options' => array( 'removedFilters' => array() ) )); Then, add one or more searchtools field name to the 'removedFilters' option array : 'options' => array( 'removedFilters' => array('filter_published', 'filter_category_id') ) and observe the result (filters removed) on the searchtools bar of: /administrator/index.php?option=com_content&view=articles
- Loading branch information