Hello,
For me it's surprising, but the render isn't the same in my production site and in my local copy. Could somebody give me an explanation ?
sections.md :
`---
title: 'Documents'
published: true
hide_page_title: true
content:
items: '@self.children'
order:
by: folder
dir: asc
limit: 0
taxonomy:
filter: [view1,view2]
child_type: section
section.md : bla bla bla`
sections.html.twig :
`<ul class="nav">
{% set collection = page.collection.visible(order('folder','asc')) %}
{% if collection is empty %}
{% set collection = page.parent.collection.visible(order('folder','asc')) %}
{% if collection is empty %}
{% set collection = page.parent.parent.collection.visible(order('folder','asc')) %}
{% endif %}
{% endif %}
{% for p in collection %}
`
I'd like to have "collection" sorted in alphanumeric order according to the folder names.
It allrignt locally on my PC, but not in the copy on my production server...