Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • gary 385 posts 916 karma points
    Nov 05, 2015 @ 15:44
    gary
    0

    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

  • Mohammad Javed 64 posts 373 karma points
    Nov 06, 2015 @ 09:40
    Mohammad Javed
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft