Sorting
How to configure query sorting.
Features, widgets and plugins that use Open Content queries within Naviga Web use the built in sorting.
Everyware 1.x+ is required for Open Content 3.0
Predefined sortings stored in Open Content were removed with OC 3.0. Applications using Open Content 3.0 must specify the sorting on API call instead.
Configuration
1. Add your own sorting configuration in your project.
name
- Shown in widgets and plugins.contentType
- Valid for just one content type. Setnull
for any.sortIndexFields
- Array or sortings, all with indexField and ascending.defaultSorting
- Name of the sorting that should be used as default in case none is selected in the widget/plugin.
Example config
2. Use your sort configuration
Default
If you don't specify anything, this will be used.
****
Priority
When fetching sorting config the plugin will follow a certain priority:
If there is any config provided with the
ew_oc_sort_config_path
filter then the plugin will use that.Sorting config fetched from OC.
The default sorting config provided by the plugin.
Last updated