Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Failed attempt at only rendering secondary navigation when there's nav items to display.
{if '{structure:child_ids_for:{structure:top:entry_id}}' != ''}
<div id="secondary-nav" class="widget">
<h3>Other Pages in <a href="{structure:top:uri}">{structure:top:title}</a>:</h3>
{exp:structure:nav
current_class="active"
start_from="/{segment_1}"
include_ul="yes"
}
</div>
{/if}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.