Dynamically hide navigation sub menu

Is there a way to dynamically hide a sub-menu item in a navigation component? I am only wanting to show it when I am on a certain page in my app. Otherwise, I want to hide the sub-menu.

Thanks!

Hey there @macphreak,

Yup, you can use the hidden setting within each of your menus/submenus:

image

You can make reference to the name of the page within the url

3 Likes

That worked! Thanks so much! :+1:t2:

2 Likes

Hey @MiguelOrtiz @macphreak -- wanted to update you that we implenented some globals to give page information to you for free! See here for more details: Multipage Changelog - #7 by Darya_Verzhbinsky.

3 Likes

Awesome, thank you @Darya_Verzhbinsky

1 Like