configurable Search plugin layout menu #11581
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Fix issue #11546
What kind of change does this PR introduce? (check one with "x", remove the others)
Issue
What is the current behavior?
All custom services are show only to the side menu introduced here: #11144
What is the new behavior?
This new option for plugin Search in localConfig:
cfg.searchOptions.bottomMenuServices(default false to maintain old config)if
trueallows you to move the side menu below the main menu, keeping it at the same level. Vertical scrolling is maintained for very long lists.search_new_layout.mp4
Breaking change
No.
one style Less class added this preserve compatibility with old themes 'search-services-submenus-bottom`
Other useful information
localConfig in section
plugins.desktop, example to enable feature working with public GS:{ "name": "Search", "cfg": { "searchOptions": { "bottomMenuServices": true, "services": [ { "type": "wfs", "name": "US States", "displayName": "${properties.state_name}", "subTitle": "level: mapstore:states", "priority": 1, "options": { "url": "https://gs-stable.geo-solutions.it/geoserver/wfs", "typeName": "mapstore:states", "queriableAttributes": [ "state_name" ], "sortBy": "", "maxFeatures": 5 } }, { "type": "wfs", "name": "Cleveland Metro Trails", "displayName": "${properties.name}", "subTitle": "level: clevelandmetro:cm_regional_trails_with_routes", "priority": 1, "options": { "url": "https://gs-stable.geo-solutions.it/geoserver/wfs", "typeName": "clevelandmetro:cm_regional_trails_with_routes", "queriableAttributes": [ "name" ], "sortBy": "", "maxFeatures": 5 } } ] } } }