Skip to main content

Item filters

FLEXIcontent provides six frontend modules for displaying items, categories, search forms, filters, maps and tag clouds. Configure a module from Extensions → Modules.

This module displays a form that filters the item listing of category-based views (category, author, tags, etc)

:::info Source This page is generated from modules/mod_flexifilter/mod_flexifilter.xml and the official FLEXIcontent 5.x language files. :::

Basic​

Template Layout​

note

Please set layout parameters in Layout: ... TAB. CSS/HTML developers please read: ** Custom templates HOW-TO **

OptionDescriptionTypeValuesDefault
Layout
layout
Choose a layout to render your modulefclayout—default
Scroll To Module
scroll_to_anchor_tag
Enable this to scroll to module on page loadradio0 = No
1 = Yes
2 = When active filters
0 (No)

Target Category​

note

Specific Category (no category selector shown) or Default Category for Category Selector or Select none to filter the category of current category view

OptionDescriptionTypeValuesDefault
Category Specific OR Default OR none(=Current)
catid
-- a specific category the filter form will submit to (no category selector shown), -- OR the default category, preselected in category selector, -- OR select none to filter category of current category viewfccategory——
Menu item category view
cat_itemid
Enter the category menu item to use for listing items NOTE 1: this is recommended if you have multiple menu items pointing to the category, which may have different filtering options (e.g. list only 'featured' flagged items) NOTE 2: menu item must point to above category, otherwise wrong or no items will be listedfcmenuitem— = Click to select—

Category selector​

note

NOTE 1: this replaces the category filter NOTE 2: single or multiple value allowed, this depends on target view (set below)

OptionDescriptionTypeValuesDefault
Show selector
display_cat_list
Show the category selector for selecting one or more categories for filteringmultilist0 = NO (Use single selected or current category)
1 = YES (include selected categories)
2 = YES (exclude selected categories)
0 (NO (Use single selected or current category))
Categories
catids
You can limit category selector to specific categories or exclude specific categories. Select none to display all categories the user can see.flexicategories——
Include subcategories
usesubcats
Allow usage of all subcategories of the selected categories. This way you don't have to edit the field every time a new subcategory is created.radio0 = No
1 = Yes
0 (No)

Target view single category / multi categories / etc​

note

This effects if category selector will allow selecting multiple categories

OptionDescriptionTypeValuesDefault
Form target
mcats_selection
Select the view that the filtering form will target, either category view or multi-category view or ... other. In the case single category view the menu item will be auto-selected, but in the case of multi-category view (mcats) you should set a menu item of type multi-category to be used, this way you can define the layout, behaviour, etc parameters of the target multi category view ...multilist0 = Category view (menu item auto-selected)
1 = Multi-category view (set menu item below)
0 (Category view (menu item auto-selected))
Menu item multi-category view
mcats_itemid
The menu item of type multi-category view (mcats), so that you can configure the view (layout, behaviour, etc). Please set this correctly, otherwise wrong or no items will be listedfcmenuitem— = Click to select—

Form (Text Search / Field Filters)​

OptionDescriptionTypeValuesDefault
Form placement
ff_placement
Select how the form container will be placed/openedmultilist0 = Inline
1 = Slider
0 (Inline)
Text of Form toggle button
ff_toggle_search_title
The text of button/link for opening/displaying the search form, default is 'Search'text—FLEXI_TOGGLE_SEARCH_FORM_MODULE (Search)
Auto-submit
filter_autosubmit
Submit form automatically when a filter changes. If you do not enable this, then users will be able to set many filters before submitting the form. NOTE: Some filter may auto-submit the form despite this settingradio0 = No
1 = Yes
0 (No)
Use ajax filter
filter_ajax
Set yes for filtering your page without reloadingradio0 = No
1 = Yes
0 (No)
Filter Badge
badge_position
Display your filter value like a badge, no display nothing, top display it before search form and bottom after submit buttonfcradio0 = No
1 = Top
2 = Bottom
2 (Bottom)
Instructions
filter_instructions
Display filter form usage instructions. You can create joomla language overrides for the language strings to give custom instructions to your usersradio0 = Hide
1 = Yes, as popup Tooltip
2 = Yes, as inline Text
1 (Yes, as popup Tooltip)

Buttons​

OptionDescriptionTypeValuesDefault
Go Button
show_search_go
Submit form reloading current listing, Note: that this will submit text search, field filters and alpha index (when any of these is present)multilist0 = Automatic
1 = Show
1 (Show)
Go class
flexi_button_class_go
Class for Go button, use value in selectlist or tip your custom classmultilist-1 = - Custom -
btn = Plain
btn btn-primary = Primary
btn btn-success = Success
btn btn-info = Info
btn btn-warning = Warning
btn btn-danger = Danger
btn btn-inverse = Inverse
btn btn-success (Success)
Custom class
flexi_button_class_go_custom
Add custom class for go button, like uk-button uk-button-large for a warp 7 templatetext——
Reset Button
show_search_reset
Clear form reloading current listing, Note: Note that this will also clear field filters and alpha index (when any of these is present)multilist0 = Hide
1 = Show
1 (Show)
Reset class
flexi_button_class_reset
Class for Go button, use value in selectlist or tip your custom classmultilist-1 = - Custom -
btn = Plain
btn btn-primary = Primary
btn btn-success = Success
btn btn-info = Info
btn btn-warning = Warning
btn btn-danger = Danger
btn btn-inverse = Inverse
btn (Plain)
Custom class
flexi_button_class_reset_custom
Add custom class for reset button, like uk-button uk-button-large for a warp 7 templatetext——
OptionDescriptionTypeValuesDefault
Use search box
use_search
Display search box in this category viewmultilist0 = No
1 = Yes
1 (Yes)
Show Label
show_search_label
You may want to hide label or display label inside the text search input to save spaceradio0 = Hide
1 = Outside input
2 = Inside input
1 (Outside input)
Use auto-complete
search_autocomplete
Select to use multi-word tag-like autocomplete, or a simpler single word or disable itradio0 = No
1 = Simple
2 = Tag-Like
1 (Simple)
Word Combination
show_searchphrase
Allow users to select method of combining the search words, e.g. phrase, phrase (more results), all words, any words, exact phraseradio0 = Hide
1 = Show
1 (Show)
Default combination
default_searchphrase
Default (preselected) method of combining the search wordsradioall = All words
any = Any words
exact = Exact phrase
natural = Phrase
natural_expanded = Phrase, more results
all (All words)

Field Filters​

OptionDescriptionTypeValuesDefault
Display filters
use_filters
Enable to display field filters. NOTE, you can define the filter appearance and behaviour by editing the configuration of every individual fieldmultilist0 = No
1 = Yes
0 (No)
Displayed filters
display_filter_list
Filters that will be displayedmultilist0 = ALL (allowed in any category)
1 = Set in category parameters
2 = Selected bellow
3 = Selected bellow & set in category parameters
0 (ALL (allowed in any category))
Select filters
filters
Select the filters you wish to load for this category view.filters——
Filter labels
show_filter_labels
Display all filter labels (=field names), this will automatically override the 'show filter label' setting of each individual filterradio0 = Field configured behavior
1 = Outside Filter
2 = Inside Filter
1 (Outside Filter)
Initial Filter values
initial_filters
These are the initial values of the filters, user can override them. Enter like: field_id##value %% field_id##value %% e.g. 22##14 %% 47##some field value %% 19##someword for ranges use field_id##value1---value2 for multiple values use field_id##value1+++value2+++value3 NOTE: your field must be configured to be range filter or multi-value filter or the values will not be used as expectedtextarea——
Display filter in slide
fc_filter_in_slide
Display filter in seperate slideradio0 = No
1 = Yes
0 (No)

Filter enclosings​

OptionDescriptionTypeValuesDefault
One record per row
filter_placement
Select how the records will be placed: -- Display a single record per row, or -- Use a custom separatorradio2 = Yes, but filter below label
1 = Yes
0 = No, use separator
3 = Place in tabs
1 (Yes)
Record Separator ignored when placing records per row
filter_separatorf
Choose a separator to separate the records (placed between records). **NOTE:**This setting is ignored when placing records per rowlist0 = Space
1 = Line break
2 = Pipe
3 = Comma
4 = Texts: Closing + Opening
5 = Empty (No characters)
0 (Space)
Prefix text of every record
filter_pretext
This text is placed immediately before every recordtext——
Suffix text of every record
filter_posttext
This text is placed immediately after every recordtext——
Opening text for record list
filter_opentag
This applied once at the START of the record list. It is meant to create the starting HTML of the record list, but above you can choose to place it as SEPARATING text of the records too. But prefer to use parameters: Prefix/Suffix text of recordstext——
Closing text for record list
filter_closetag
This applied once at the END of the record list. It is meant to create the ending HTML of the record list, but above you can choose to place it as SEPARATING text of the values too. But prefer to use parameters: Prefix/Suffix text of recordstext——

Locked Filters​

OptionDescriptionTypeValuesDefault
Use locked filters
use_persistent_filters
Filters that can NOT be overriden by user, NOTE: These maybe hidden or you may choose to display them (user input will be prohibited)multilist0 = No
1 = Yes
0 (No)
Locked Filter values
persistent_filters
Enter like: field_id##value %% field_id##value %% e.g. 22##14 %% 47##some field value %% 19##someword for ranges use field_id##value1---value2 for multiple values use field_id##value1+++value2+++value3 NOTE: your field must be configured to be range filter or multi-value filter or the values will not be used as expectedtextarea——

Hide/Show Module​

These rules specify when module contents will be created (thus shown) or not created (thus hidden).

OptionDescriptionTypeValuesDefault
Combine Rules
combine_show_rules
Either require any or both VIEWS rules and PHP expression rule, in order to show the moduleradioOR = OR
AND = And
AND (And)

Clients​

note

Please note that if Joomla Caching is enabled inside Joomla Global Configuration then - either enable 'Platform specific caching' (note that 'tablet' is detected as 'mobile') - or disable caching inside 'Advanced setting' TAB of this module if none of the above is done then this setting will be ignored

OptionDescriptionTypeValuesDefault
Show in clients
show_in_clients
Select to show in desktops, tablets, mobilesfccheckbox——

Views (category, item, etc) Rules​

OptionDescriptionTypeValuesDefault
Show in views
show_in_views
Select view in which module will be shownfccheckbox——

PHP Expresion Rule​

OptionDescriptionTypeValuesDefault
Enable Rule
enable_php_rule
You can disable rule without removing the rule 's entered textmultilist0 = No
1 = Yes
0 (No)
PHP rule code
php_rule
The given PHP code is execute and last statement must return a boolean value (via 'return' statement) which will used to decide to show or not the moduletextarea——

Layout: Options of selected Layout​

Layout Options specific to the chosen template layout

Advanced​

Caching​

OptionDescriptionTypeValuesDefault
Caching
cache
Select whether to cache the content of this module.list0 = No caching0 (No caching)

CSS / JS​

OptionDescriptionTypeValuesDefault
Add css
add_ccs
Add the module default css fileradio— = Use component setting
0 = No
1 = Yes
2 = CSS links inside HTML (allows capturing)
—
Add tooltips JS
add_tooltips
Add the tooltips JS behavior from Joomla to display the nice tooltips in frontend.radio— = Use component setting
0 = No
1 = Yes
—

Module Container​

OptionDescriptionTypeValuesDefault
Module Class Suffix
moduleclass_sfx
A suffix to be applied to the css class of the module, this allows individual module styling.text——