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.
Excluding Child Pages from Drop-down part 2
Hi Mo,
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.
Gary
Hi @gary
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
Thanks
Javed
is working on a reply...