mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[MNT-22574] Conditional AI Search (#2339)
* [MNT-22574] Support rules for search forms * * fix lints * Patch version increment Co-authored-by: dhrn <dharan.g@muraai.com>
This commit is contained in:
@@ -10,6 +10,7 @@ In this tutorial, we are going to implement the following features:
|
||||
- [Add a new search form](#add-a-new-search-form)
|
||||
- [Replace a search form](#replace-a-search-form)
|
||||
- [Replace default search](#replace-default-search)
|
||||
- [Adding rule to search form](#adding-rule-to-search-form)
|
||||
|
||||
### Extension Properties
|
||||
|
||||
@@ -80,3 +81,23 @@ To replace the default search with your configuration set to true the default fi
|
||||
}
|
||||
}
|
||||
```
|
||||
### Adding rule to search form
|
||||
|
||||
It support the visible rule to show the configuration
|
||||
|
||||
```json
|
||||
{
|
||||
"features": {
|
||||
"search": [
|
||||
{
|
||||
"id": "app.search.custom_search",
|
||||
"order": 200,
|
||||
"name": "APP.SEARCH.MY_CUSTOM_SEARCH",
|
||||
"rules": {
|
||||
"visible": "<name of the rule>"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
```
|
||||
|
Reference in New Issue
Block a user