diff options
author | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2021-02-03 11:24:46 +0100 |
---|---|---|
committer | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2021-02-03 11:24:46 +0100 |
commit | 23de3297bbd74980a2f6da326acc5da63ddef2fe (patch) | |
tree | fc670e596e96a2147ee0f27a838072ba98645e25 /docs/source/user | |
parent | de1c03d81615e6fd50540008fe6ca46feb012c30 (diff) |
Add a default_sort option to collections
Diffstat (limited to 'docs/source/user')
-rw-r--r-- | docs/source/user/settings.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/source/user/settings.rst b/docs/source/user/settings.rst index 0d2eec9..7c84e39 100644 --- a/docs/source/user/settings.rst +++ b/docs/source/user/settings.rst @@ -16,6 +16,10 @@ It is a yaml file with a dict of properties and their values. a jinja2 template used to show an entry in the interface; beside the entry fields two useful variables are ``eid`` for the full entry ID and ``short_id`` for the short version. +``default_sort``: + a list of field names (possibly prefixed by + or -) that are used by + default to sort results of searches in the collection. + The fields must be marked as sortable in their definition, see below. ``fields``: The list of fields used by the collection, as described below. |