I'm using this solution to output the children within a current structure entry. Unfortunately I need to take out the anchor on some entries that don't yet have content, but still include the (unlinked) title.
I'm trying the following
{% nav page in subnav %}
{% if page.id != entry.id %}
<li>{% if page.pageIntroText|length %}<a href="{{ page.url }}">{%endif%}{{ page.title }}{% if page.pageIntroText|length %}</a>{%endif%}</li>
{%else%}
<li class="current-page">{{ page.title }}</li>{%endif%}
{% endnav %}
.. but it removes the anchor regardless of whether there is any content in pageIntroText field?
Any ideas?
Many thanks
Martin