Exclude pages from nav by default

Permalink 1 user found helpful
Hi,

Is there a way to exclude a page from the navigation by default - without having to tick the box in the page properties?

The site I'm designing has news articles that I don't want to appear in the main nav (they are listed using the page view block on the main News page), but I don't want to rely on the end user remembering to tick the box each time they create a new article.
I want the articles (that use their own template file) to be excluded by default.

Thanks in advance for any advice.
Tony.

 
jordanlev replied on at Permalink Reply
jordanlev
This post is very old, but just in case someone comes across it, there's a free addon in the marketplace that provides a new 'Exclude Subpages from Nav' attribute -- you could set that attribute on the top-level News page and then any new pages created under that would be hidden from the nav menu without your users having to check the 'Exclude from Nav' attribute on each one.

http://www.concrete5.org/marketplace/addons/autonav-exclude-subpage...
osu replied on at Permalink Reply
osu
Thanks for this Jordan, really useful for a project I'm working on. Going to try and understand the code so I can see how you got the child page IDs and use it in the problem I have in this thread:

http://www.concrete5.org/community/forums/customizing_c5/filtering-...
joelhansen replied on at Permalink Reply
joelhansen
I'm experiencing a similar issue in 5.6.0.2.

New blog posts are being created with the Exclude from Nav attribute 'present' but not checked.

I have my blog post page types Settings set to include the Exclude from Nav attribute.

Then, under page type attributes I set Exclude from Nav to "Default Value
- The checkbox will be checked by default." This was done underhttps://www.verduragardens.com/index.php/dashboard/pages/attributes/...

Does anyone know if this is the right place? Am I missing something?

Appreciate the help.

Best,

Joel
WhiteHawk replied on at Permalink Reply
Have the same issue. I want all pages with a certain page type to be excluded from nav.