The Admincentral module allows you to customize certain functional aspects of the Find Bar, namely configuration of search filters and sizes of search result collections.
Installing with Maven
Maven is the easiest way to install the module.
Add the following to your bundle:
Should you need to specify the module version, do it using <version>.
The UI Admincentral is a different module.
Its groupId is info.magnolia.ui, and its artifactId is magnolia-ui-admincentral.
You can use it to configure, for example, the availability and layout of apps in the App launcher.
Configuring Find Bar search results
You can configure how many search results are displayed.
To do so, use the definition decoration mechanism.
For example, the following light module configuration updates the defaultCountPerSupplier to 3, allowing you to see only up to 3 search results.
<my-module>/decorations/admincentral/config.yaml
findBar:defaultCountPerSupplier:3Copy
Configurable properties for Find Bar search
The table below lists properties in the Admincentral module that affect how search results appear.
Table 1. Subset of findBar properties
Property
Description
defaultCountPerSupplier
optional, default is 10
Integer defining the maximum number of search results shown from any
single search supplier.
editorRoles
optional
List of user roles allowed in the Last editor search filter:
All users are available unless specified otherwise.
By allowing all user roles in editorRoles, you may experience
performance issues, especially when a large number of public users are
registered in a shared user repository on the author instance and you
open a Find Bar filter.
minimumSearchLength
optional, default is 3
Configure the minimum number of necessary characters that are shown in a text hint in the find bar to help the user understand how to use the search feature.
suppliers
optional
List of search result suppliers. If undefined, it defaults to all suppliers provided by the
Periscope module.