Skip to main content

Advanced search

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 simple search form that links to FLEXIcontent search view

:::info Source This page is generated from modules/mod_flexiadvsearch/mod_flexiadvsearch.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—news

Search view menu item (contains the search view configuration)​

OptionDescriptionTypeValuesDefault
Force menu item
itemid_force
This option will force all links to items to use the current menu itemid or a specific menu itemidmultilist0 = Default (component configuration)
1 = Custom (below)
0 (Default (component configuration))
Custom menu itemid
itemid_force_value
Custom menu itemidtext——

Basic Configuration​

Text Search Field​

OptionDescriptionTypeValuesDefault
Size (# of characters)
search_inner_width
Size of the text search input field width in characterstext—20
Inner prompt (when empty)
search_inner_prompt
This is the text to be displayed inside text search field as a prompt before text is typed. NOTE: This can be a language stringtext—FLEXI_ADV_MOD_SEARCH_PROMPT (Search ...)

Go Button (submit)​

OptionDescriptionTypeValuesDefault
Show
button
Displays a go / search (submit) button, otherwise the user can submit only by clicking enter inside the text search fieldmultilist0 = No
1 = Yes
0 (No)
CSS class
flexi_button_class_go
CSS class for this button, use value in selectlist or type 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 this button, like uk-button uk-button-large for a warp 7 templatetext——
Position
button_pos
Position of the button relative to the search boxradioright = Right
left = Left
top = Top
bottom = Bottom
right (Right)
Button as
button_as
Display button as either text or an image. NOTE: set an image path relative to the Joomla foldermultilist0 = Text
1 = Image
0 (Text)
Image path
button_image
Image pathtext——
Text
button_text
When the Go button is text NOTE: This can be a language stringtext—FLEXI_ADV_MOD_GO (Go)

Search Form: Content Types​

OptionDescriptionTypeValuesDefault
Show Label
show_type_label
You may want to hide label or display label inside the content types searchradio— = Use global
0 = Hide
1 = Show
—
Searchable Types (Select NONE for -ALL-)
contenttypes
The content types the search will include, selecting none will include ALL. NOTE: You can allow user to select Content Types. If you do then the selection list will be LIMITED to display ONLY the types specified heretypes——
Allow user selection
canseltypes
Allow users to select content types they want to include in their searchradio0 = No
1 = Yes
1 (Yes)

Search Form: Advanced Options​

note

NOTE: when advanced search options box is hidden, the options configured below will still be used

OptionDescriptionTypeValuesDefault
Advanced search options box
autodisplayadvoptions
If this is disabled. Then a clickable text will appear to allow user to toggle the advanced search box on/off.radio0 = Hide
1 = Yes, initially closed
2 = Yes, initially opened
1 (Yes, initially closed)
Text search using
txtmode
Using the basic search index is faster and is recommended for LARGE SITES, (test to see evaluate performance difference)multilist0 = Basic Index (faster, fields not selectable)
1 = Advanced Index (use configured fields)
2 = Advanced Index (use configured fields, allow user selection)
0 (Basic Index (faster, fields not selectable))

PER content type configuration (ADVANCED Index)​

OptionDescriptionTypeValuesDefault
Text-Search Fields
show_txtfields
Enable this to use specific text searchable fieldsmultilist0 = Use all searchable
1 = According to type
2 = Configure below
1 (According to type)
Fields (Leave EMPTY for -ALL-)
txtflds
NOTE: only fields marked as advanced index text-searchable are listedfilters——

Search Areas (non-FC Content)​

OptionDescriptionTypeValuesDefault
Use areas
show_searchareas
Allow the user to select and search other areas of the website content, e.g. like weblinks, user contacts, etcmultilist0 = Disable
1 = Enable, show selector
0 (Disable)
Search Areas
searchareas
The site's (non-FC content) search areas, that the search will include. NOTE: if user is allowed to select Search Areas, then the selection list will be LIMITED to display ONLY the search areas selected hereradio— = All—
Show ordering
show_searchordering
Allow frontend users to select ordering of results of other areas of the website content. NOTE this is different ordering from the ordering used for main content results.radio0 = No
1 = Yes
1 (Yes)
Default value
default_searchordering
Default ordering for sorting the results of the searchradionewest = Newest first
oldest = Oldest first
popular = Most popular
alpha = Alphabetical
category = Section/Category
newest (Newest first)

Direct Button (Go to the first result)​

OptionDescriptionTypeValuesDefault
Show
direct_button
Displays a direct / lucky buttonmultilist0 = No
1 = Yes
0 (No)
CSS class
flexi_button_class_direct
CSS class for this button, use value in selectlist or type 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_direct_custom
Add custom class for this button, like uk-button uk-button-large for a warp 7 templatetext——
Position
direct_pos
Position of the button relative to the search boxradioright = Right
left = Left
top = Top
bottom = Bottom
right (Right)
Button as
direct_as
Display button as either text or an image. NOTE: set an image path relative to the Joomla foldermultilist0 = Text
1 = Image
0 (Text)
Image path
direct_image
Image pathtext——
Text
direct_text
When the Direct button is text NOTE: This can be a language stringtext—FLEXI_ADV_MOD_DIRECT (Lucky)
OptionDescriptionTypeValuesDefault
Show link
link_to_advsearch
Enable this to display a direct link to the (FLEXIcontent) advanced search viewmultilist0 = No
1 = Yes
0 (No)
Linked Text
link_to_advsearch_txt
The text that will be linked to (FLEXIcontent) advanced search viewtext—FLEXI_ADV_MOD_OPEN_DETAILED_SEARCH (Open detailed Search)
CSS class
flexi_button_class_advanced
CSS class for this button, use value in selectlist or type 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_advanced_custom
Add custom class for this button, like uk-button uk-button-large for a warp 7 templatetext——
Position
link_to_advsearch_pos
Position of the button relative to the search boxradioright = Right
left = Left
top = Top
bottom = Bottom
right (Right)

Auto-complete​

Configuration of the search suggestions (simple auto-complete). The rich display below is used by the simple auto-complete only.

OptionDescriptionTypeValuesDefault
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)
Suggestion list width
search_ac_dropdown_width
CSS width of the auto-complete suggestion dropdown. Leave empty to match the search input width. Examples: 40rem, 600px, 90vw, min(40rem, calc(100vw - 2rem)). The width is automatically capped to the viewport. Applies to both the simple and tag-like auto-complete.text——

Rich suggestions​

OptionDescriptionTypeValuesDefault
Enable rich suggestions
search_ac_rich
Add an image and extra content fields to the item title suggestionsmultilist0 = No
1 = Yes
1 (Yes)
Image source
search_ac_image_source
Use the first image found in the item text, an image from a FLEXIcontent image field, or the image field set in the content type of each suggested item (Content type -> Search view)multilistauto = Extract from item text
field = FLEXIcontent image field
type = Use type settings
auto (Extract from item text)
Image field
search_ac_image_field
Select the FLEXIcontent image field to use when the image source is 'FLEXIcontent image field'fields——
Image width
search_ac_image_width
Width of the suggestion thumbnail in pixelsnumber—60
Image height
search_ac_image_height
Height of the suggestion thumbnail in pixelsnumber—60
Image resize method
search_ac_image_method
Scale keeps the whole image, crop fills the configured width and heightradio0 = Scale
1 = Crop
1 (Crop)
Image position
search_ac_image_position
Position of the image relative to the title and fieldsradioleft = Left
right = Right
left (Left)
Title maximum length
search_ac_title_maxlen
Maximum number of characters displayed for the title, cut at a word boundary. Set 0 for no limit. The full title is still used when searching.number—60
Extra fields source
search_ac_info_source
Use the fields listed below for all suggestions, or the extra fields set in the content type of each suggested item (Content type -> Search view)multilistmodule = Fields selected below
type = Use type settings
module (Fields selected below)
Extra fields
search_ac_info_fields
Select fields one by one to display them next to the image. Drag the added fields to set their display order. Values are rendered as plain text.fields——
Show field labels
search_ac_info_labels
Display the field label before its valueradio0 = No
1 = Yes
1 (Yes)
Field value maximum length
search_ac_info_maxlen
Maximum number of characters displayed for each field value, cut at a word boundary. Set 0 for no limit.number—80

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.list1 = Use global
0 = No caching
1 (Use global)
Cache Time
cache_time
The time before the module is recached.text—900

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——