How To Exclude Subpages from Navigation

This tutorial is over a year old and may not apply to your version of Concrete CMS.
Dec 24, 2022

Have you ever had a news section or a blog linked in your main navigation, but really didn't want a giant drop down list of EVERY blog of news article in existence showing up underneath?

The good news is Concrete CMS has a page attribute you can create that will make it so that these page entries do not appear in Autonav blocks. It is called "Exclude Subpages Pages from Navigation".

You can set up the attribute by:

1.) Going to the Page Attributes pages in you dashboard (/dashboard/pages/attributes).

2.) Creating a new page attribute of type "Checkbox".

3.) Name it "Exclude Subpages from Navigation".

4.) Make sure the handle is exclude_subpages_from_nav - IMPORANT the handle must be exactly this, or it won't work.

5.) Leave everything default and save the new Page Attribute.

6.) Go to the page you want to exclude subpages under (like your blog or news page) and apply the attribute. Make sure it's checked, and then save it. Don't forget to publish the version!

7.) Voila! The sub pages will not appear in your navigation.

Recent Tutorials
Create custom Site Health tasks
Apr 19, 2024
By myq.

This tutorial will guide you through the creation of a new Site Health task

Reusing the same Express entity in multiple associations
Apr 11, 2024
By myq.

How to create and manage multiple associations in Express

Express Form Styling
Apr 11, 2024
By myq.

Different ways to style Express forms

Setting addon/theme version compatibility in the marketplace
Jan 9, 2024

For developers worn out with setting the latest addon or theme version manually across too many core versions, here is a JavaScript bookmarklet to do it for you.

How to get the locale of a page
Jan 8, 2024
By wtfdesign.

Now, why don't we just have a getLocale() method on Page objects beats me, but here's how you work around it

Using a Redis Server
Jun 16, 2023
By mlocati.

How to configure Concrete to use one or more Redis servers to persist the cache.


Let us know by posting here.