diff options
Diffstat (limited to 'templates/html/htmljsmenuletterdata.tpl')
-rw-r--r-- | templates/html/htmljsmenuletterdata.tpl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/templates/html/htmljsmenuletterdata.tpl b/templates/html/htmljsmenuletterdata.tpl new file mode 100644 index 0000000..ded3402 --- /dev/null +++ b/templates/html/htmljsmenuletterdata.tpl @@ -0,0 +1,12 @@ +{# inputs: page, list, section, text #} +{text:'{{ text }}',url:'{{ page.fileName }}{{ section }}{{ config.HTML_FILE_EXTENSION }}' +{% if list|length>maxItemsForMultiPageList %} +,children:[ + {% with index=list|alphaIndex:'name' %} + {% for sect in index %} + {text:'{{ sect.letter }}',url:'{{ page.fileName }}{{ section }}_{{ sect.label }}{{ config.HTML_FILE_EXTENSION }}'}{% if not forloop.last %},{% endif %} + {% endfor %} + {% endwith %} +] +{% endif %} +} |