Copied to clipboard

Flag this post as spam?

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


  • Said 4 posts 84 karma points
    Oct 23, 2019 @ 06:41
    Said
    0

    Excluding Menu from navigation bar

    How to exclude menu from navigation list in umbraco v8

  • Matt 359 posts 842 karma points
    Oct 23, 2019 @ 14:37
    Matt
    0

    You can create a true/false property with alias "umbracoNaviHide"

  • Said 4 posts 84 karma points
    Oct 24, 2019 @ 07:28
    Said
    0

    I wand to exclude that properties from navigation menu that have "umbracoNaviHide" as alias, how to control it. enter image description here

  • Jonathan Distenfeld 105 posts 618 karma points
    Oct 24, 2019 @ 08:13
    Jonathan Distenfeld
    100

    Hi,

    you could try:

    var childPages = page.Children.Where(x => x.IsVisible() && !x.Value<bool>("umbracoNaviHide"));
    

    ~ Jonathan

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies