I am looking for a way to exclude certain pages from the navigation. I know it must be quite easy, but nothing seems to work for me at the moment.
So I've setup a lightswitch field "exclude from navigation" (cf_hideFromNav)
Problem is that I want the navigation to start only from a certain slug:
{% set topEntry = craft.entries.section('pages').depth(1).slug('club').first() %}
{% set descendants = topEntry.getDescendants() %}
<ul>
{% nav entry in descendants %}
<li>
{{ entry.title }}
{% ifchildren %}<ul>{% children %}</ul>{% endifchildren %}
</li>
{% endnav %}
</ul>
how could I incorporate the cf_hideFromNav in this equation?
any help appreciated!
cheers
stefan