You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a common setup that I use so I am very familiar with it but for some reason the getActiveNode is empty. I have tried using {{ dump(nodeActive)}} and nothing is ouput.
{% set headerNavigationNodes = craft.navigation.nodes('headerNavigation').level(1).all() %}
{% set nodeActive = craft.navigation.getActiveNode({ handle: 'headerNavigation' }, true) %}
<nav>
<ul id="main-navigation" class="main-nav hide-lt-xl">
{% for node in headerNavigationNodes %}
<li class=""><a href="{{ node.url }}" class="{% if nodeActive == node.title %} is-active{% endif %}">{{ node.title }}</a></li>
{% endfor %}
</ul>
</nav>
Steps to reproduce
Craft CMS version
4.12.8
Plugin version
2.1.1
Multi-site?
No
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
This is a common setup that I use so I am very familiar with it but for some reason the getActiveNode is empty. I have tried using {{ dump(nodeActive)}} and nothing is ouput.
Steps to reproduce
Craft CMS version
4.12.8
Plugin version
2.1.1
Multi-site?
No
Additional context
No response
The text was updated successfully, but these errors were encountered: