Within Razor, is there any way of getting the Navigation level of the current page? I know that we can get the Title of the page by simply using title. Just trying to find out the same for the navigation level.
Thanks & Regards,
Yash.
Within Razor, is there any way of getting the Navigation level of the current page? I know that we can get the Title of the page by simply using title. Just trying to find out the same for the navigation level.
Thanks & Regards,
Yash.
PageView.Current.Page.get_Value("PageLevel")
Thank you so much mate! :)
Hey Nicolai, this doesn't seem to be working within a Razor Template.
Do we have something like @GetValue("Title") for PageLevel?
Thanks,
Yash.
Yes it works, but you probably need the entire namespace path:
@Dynamicweb.Frontend.PageView.Current().Page.get_Value("PageLevel")
You must be logged in to post in the forum