dynamic menu selection
Created 6 years ago by tedderksen

{{ menu('{{ page.submenu.slug }}').render()|raw }}

How can I make dynamic menu? this is my current code but it's not working. And I've checked the string i put out with page.submenu.slug is correctly named.

ryanthompson  —  6 years ago

Your twig syntax is a little off:

{{ menu(page.submenu.slug).render()|raw }}