dynamic menu selection

tedderksen - 1 week ago

{{ 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 - 1 day ago

Your twig syntax is a little off:

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