Added PAGE_ORDER_BY as the default page ordering setting. Falls back to PAGES_SORT_ATTRIBUTE when this is not defined (the old behaviour).
This commit is contained in:
parent
953ede091b
commit
8a80be0b78
1 changed files with 3 additions and 0 deletions
|
@ -107,6 +107,9 @@
|
||||||
{% if pages or LINKS %}
|
{% if pages or LINKS %}
|
||||||
<nav>
|
<nav>
|
||||||
<ul class="list">
|
<ul class="list">
|
||||||
|
{% if PAGE_ORDER_BY -%}
|
||||||
|
{% set PAGES_SORT_ATTRIBUTE = PAGE_ORDER_BY %}
|
||||||
|
{%- endif %}
|
||||||
{% if not PAGES_SORT_ATTRIBUTE -%}
|
{% if not PAGES_SORT_ATTRIBUTE -%}
|
||||||
{% set PAGES_SORT_ATTRIBUTE = 'title' %}
|
{% set PAGES_SORT_ATTRIBUTE = 'title' %}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
Loading…
Reference in a new issue