Back to MenuManager Support

sercanvirlan
sercanvirlan

I inserted the menu component to a layout page, how can i activate the menu item from subpage?

benfreke
benfreke

I haven't tested this, but calling the component from the page with the same alias as the version on the layout could work? If it doesn't, then I'll do some investigating and see what I can figure out. Because this is a feature I want when I finally get around to building a site :)

e.g. The alias on the layout is "layout-menu", so you add this code to the page `{% component 'layout-menu' %}

sercanvirlan
sercanvirlan

I think you get wrong, im telling the active item which has active class on the menu component.

If i put the menu component on layout i can not active any menu item from page.

There is a breadcrumb plugin that we can do every spesific action from cms module.

benfreke
benfreke

Ah, how to make the current page active when you are viewing it, when the component is added to the layout.

I'm not certain, I would have thought the onRender method it's using was page specific. If you've cleared your cache on the server, than I don't know. I'll look into this next chance I get, but it won't be any time soon sorry as I've got a lot of things on for the next few days.

1-4 of 4