Copied to clipboard

Flag this post as spam?

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


  • CoolKiwiBloke 12 posts 51 karma points
    Jan 04, 2015 @ 21:08
    CoolKiwiBloke
    0

    Remove the comments node from navigation

    I've used uCommentsy as the contact page on my site, with the contact page being in the main menu. However the comments node, which is automatically created under the contact page, is also showing up in the menu, and there is no option to exclude from navigation. Is there anyway to do this other than to filter the document type out in the navigation partial?

  • Nicholas Westby 2054 posts 7100 karma points c-trib
    Jan 05, 2015 @ 04:53
    Nicholas Westby
    100

    You could add the property "umbracoNaviHide" (or whatever property you are using to hide content nodes from the navigation) to the uComments doctypes, then you could create an "on save" listener that automatically sets that to true for nodes of the uCommentsy doctypes.

    However, what I typically do for menus is detect if the content node has a template specified. If it doesn't have a template, it won't display as a page, and so probably does not belong in the navigation menus.

  • CoolKiwiBloke 12 posts 51 karma points
    Jan 05, 2015 @ 04:56
    CoolKiwiBloke
    0

    Good call

Please Sign in or register to post replies

Write your reply to:

Draft