This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

juhkob17987
juhkob17987

Hello,

I created a Menu with the code "staticMenu"

In a partial ("header.htm") I am trying to display the menu:

{% component 'staticMenu' %}

Unfortunately nothing happens. There are no errors, but the menu just doesn't show up.

I'm not sure what I'm missing. Any help would be appreciated.

OFFLINE
OFFLINE

Have you added the component to the head section of the partial or the layout?


[staticMenu]
code = "your-menu"
==

{% component 'staticMenu' %}
juhkob17987
juhkob17987

Ah! Thank you, that helped.

I added [staticMenu] to the head section, but I did not specify the code.

Thanks again!

1-3 of 3

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.