templates/app/partials/navigation.html.twig line 1

Open in your IDE?
  1. {# get the document which should be used to start in navigation | default home #}
  2. {% set navStartNode = document.getProperty('navigationRoot') %}
  3. {% if not navStartNode is instanceof('\\Pimcore\\Model\\Document\\Page') %}
  4.     {% set navStartNode = pimcore_document(1) %}
  5. {% endif %}
  6. {% set mainNavigation = pimcore_build_nav({
  7.     active: document,
  8.     root: navStartNode
  9. }) %}
  10. <div class="container items-center hidden h-full lg:flex">
  11.     {# include a document-snippet - in this case the navigationSnippet #}
  12.     {{ pimcore_inc(document.getProperty('navigationSnippet')) }}
  13. {#    #}{# later you can render the navigation #}
  14. {#    {{ pimcore_render_nav(mainNavigation) }}#}
  15. </div>