twigsulu

Sulu CMF - Sort order in flat navigation


Beside the main navigation, I want to use a second navigation context to display links in the footer of the homepage.

{% for item in sulu_navigation_root_flat('footer_support', 4) %}
    <li><a href="{{ sulu_content_path(item.url) }}" title="{{ item.title }}">{{ item.title }}</a></li>
{% endfor %}

This is working so far. The problem is that the sort order of the footer links. The order neither matches the order of the items in the backend, nor can I find a way to change that order. Can someone give me a hint please?


Solution

  • The ordering is matching the ordering in the Admin.

    If you want to have different ordering of a Item in the Footer then in the Main Navigation you create a new Node/Page using the "Internal Link" feature of Sulu.

    This way you can add a Link at any position of your Footer or other Navigations.