...
You can configure wich contexts you want to see in the dropdown menu. If you don’t configure it, contexts defined in $dam.contexts
will be displayed.
“google like” search
Config path | Default value | Description |
---|
$.home.displaySearchBar
| true
| Enables the google like search |
$.home.headerNavHomeBarSearches
| Code Block |
---|
[
{
"translationKey": "home.searchBar.allmedia"
},
{
"translationKey": "home.searchBar.video",
"targetCursorName": "allVideos"
}
]
|
| Defines the different values available in the left drop-down menu. Each entry in the array is an object accepting 2 properties: translationKey (mandatory), the i18n key for the dropdown item
targetCursorName name of the cursor the search should lead to (default: allAssets )
|
$.home.hideCursorNameIfAlone
| true
| When set to true , will hide the cursor name, if only one available |
i18n home.button.search | Search | i18n key for the search button |
fill-in the gaps sentence
Search bar can be configured as a simple “fill in the gap sentence”
The configuration allows you to set up a list of universes. For the input field, you can choose the fields to use for auto-complete. You can then configure one or more metadata that will appear as filters.
...
Config path | Default value | Description |
---|
$.home.displayNaturalSearch
| false
| Enables the fill-in the gaps sentence |
$.home.headerNavNaturalSearches
| undefined
| Accepts an array of sentence description. Each entry in this array is an object allowing following properties: translationKey : String , i18n key for the search
cursor : Object a cursor description
suggestedDisplayFields : Array<String> list of fields to be used for auto-complete when filling-in text in the free search field
enabledFields : Array<String> list of fields enabled for selecting values
fieldsConfig : Object allows to configure how enabledFields should be displayed. Each entry in this object should match an item of enabledFields . Each value provides options for configuring the field.
|
i18n key: naturalsearch.loading
| Searching… | Button text when the search is running |
i18n key: naturalsearch.noResults
| Sorry, no results for your search | Button text when search returns no result |
i18n key: naturalsearch.viewNresults
| View {0} results | Button text when search returned results |
Note |
---|
If both $.home.displaySearchBar and $.home.displayNaturalSearch are set to true , the system will show both search options. |
Common config to both searches
Config path | Default value | Description |
---|
$.home.hideFulltextModeOption
| true
| When set to false , adds a checkbox to enable “reference searches”. By checking this box, the system will permform searches using an “OR” operator between words instead of using an “AND” this is usefull to search for multiple product references: results will only need to match one reference instead of all references |
i18n key: common.search.fulltextoption.allterms | Search by reference | i18n for the checkbox label: common.search.fulltextoption.allterms |
background sliding images as a dedicated contribution
...