Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Think I just broke the editor by writing li in brackets answering your question.
If you need any more help, you can post here.
To rewrite, take the if statement outside of the li, should stop the empty shell of the dropdown appearing.
If you use a true/false on the doctype with a type of umbracoNaviHIde, the where("visible") will pick this up and show or not show it.
You could have tried editing the post? That's maybe a bug the tech team needs to resolve?
I'll have a go with taking the if statement outside the list elements.
As for the true false, would that mean every child page created will you have to tick the option to hide from navigation? If so, i don't think the client will enjoy doing that.
Will have a tinker.
If anyone wants to have a look at the original questions look at https://our.umbraco.org/forum/developers/razor/72717-excluding-child-pages-from-drop-down-menu
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted