diff options
author | Thomas Lange <code@nerdmind.de> | 2021-07-01 23:14:40 +0200 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2021-07-01 23:14:40 +0200 |
commit | 3833c8c19baf519385ebf2fea5c9018a66edb325 (patch) | |
tree | 6aaf41c79ac12bf8ad2251ee4176563d46e5d508 /core/application.php | |
parent | 78f8fb62f4d5b518eac51ffa8c03adc320d5ab1e (diff) | |
download | blog-3833c8c19baf519385ebf2fea5c9018a66edb325.tar.gz blog-3833c8c19baf519385ebf2fea5c9018a66edb325.tar.xz blog-3833c8c19baf519385ebf2fea5c9018a66edb325.zip |
Add option CATEGORY.LIST_SORT to application.php
The option CATEGORY.LIST_SORT is currently only used for sorting the
children categories of a category, not for sorting the categories on
the category overview page.
This is because the sorting of the categories in the category overview
is handelnd internally with a virtual table column "_depth" which sorts
the categories by name *and* its sub categories (like a tree).
Thus, there is currently no user option to sort the category overview.
Diffstat (limited to 'core/application.php')
-rw-r--r-- | core/application.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/application.php b/core/application.php index 0e1324a..280a8e7 100644 --- a/core/application.php +++ b/core/application.php @@ -89,6 +89,7 @@ foreach([ 'PAGE.SINGLE_REDIRECT' => FALSE, 'POST.SINGLE_REDIRECT' => FALSE, 'USER.SINGLE_REDIRECT' => FALSE, + 'CATEGORY.LIST_SORT' => 'name ASC', 'PAGE.LIST_SORT' => 'time_insert DESC', 'POST.LIST_SORT' => 'time_insert DESC', 'USER.LIST_SORT' => 'time_insert DESC', |