summaryrefslogtreecommitdiffstats
path: root/templates/html/htmlindexpages.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/html/htmlindexpages.tpl')
-rw-r--r--templates/html/htmlindexpages.tpl19
1 files changed, 19 insertions, 0 deletions
diff --git a/templates/html/htmlindexpages.tpl b/templates/html/htmlindexpages.tpl
new file mode 100644
index 0000000..65bf1b6
--- /dev/null
+++ b/templates/html/htmlindexpages.tpl
@@ -0,0 +1,19 @@
+{# inputs: list, section #}
+{% with letter='' %}
+ {# create full index page #}
+ {% create page.fileName|append:section|append:config.HTML_FILE_EXTENSION from template %}
+{% endwith %}
+{% if list|length>maxItemsForMultiPageList %}
+ {% opensubindex nav %}
+ {% with index=list|alphaIndex:'name' %}
+ {% for sect in index %}
+ {% with letter=sect.letter %}
+ {% set page_postfix=section|append:'_'|append:sect.label %}
+ {% indexentry nav name=letter file=page.fileName|append:page_postfix anchor='' %}
+ {# create index pages for all globals starting with a specific letter #}
+ {% create page.fileName|append:page_postfix|append:config.HTML_FILE_EXTENSION from template %}
+ {% endwith %}
+ {% endfor %}
+ {% endwith %}
+ {% closesubindex nav %}
+{% endif %}