How to handle a lot of searches in Web UI
In my project, I have more than 20 document types, and I need searches for all of them. I am following this: https://doc.nuxeo.com/nxdoc/web-ui-search/
All searches work properly; however, as I have a lot of searches (more than 20), I have more than 20 icons in the left menu, which is not good as it becomes difficult to handle. Is there any way to group all the searches in one single icon in the left menu? I remember that, in Nuxeo JSF, there was a kind of “select” to select one search or another. Is this possible in Web UI? If it is possible, how can I do it?
This is a very good question actually. This is a current topic of our Design team who investigate on the best way to scale a lot of configuration / actions (same goes with the document actions, the actions on the document listing, a document type with a lot of properties etc).
That said, here are my thoughts:
- If you have different groups who access the searches, setting a filter on each search item is an option (I did it with the browse item for example, to display a root element different from one group to another)
- You can also add search submenus, as for the admin menu for example
- In the worst case scenario, you can create a complete new menu with pages and subpages
- Saved searches are not configurable from Studio, so I bet there's a way to automate the saved search from automation scripting
I have also tried to modify the nuxeo-search-form element with a "select" at the top allowing to change the search, but modifying the "provider", "searchName" and "schemas" seems to be not enough. The form and the results change, but the search doesn't work.
Thank you for your help.