Display All Subpages EXCEPT...

Permalink 1 user found helpful
Is there a way I can set the autonav to display subpages except for underneath one page?

My main navigation looks like this:

Home
--About
----Sub 1
----Sub 2
--Services
----Sub 1
----Sub 2
----Sub 3
--Blog
----Post 1
----Post 2
----Post 3
----etc.
--Contact
----Sub 1
----Sub 2

I have drop-down menus setup on all of my main navigations so users can travel to sub-pages upon hover...however, I don't want to have my blog posts show up as a drop-down menu.

I tried using the Exclude from Nav attribute, but that then keeps those items from showing up in my Date Navigation on my Blog pages to sort through blog posts.

Any thoughts??

leinteractive
 
12345j replied on at Permalink Reply
12345j
how comfortable are you with php?
leinteractive replied on at Permalink Reply
leinteractive
I couldn't write anything from scratch...but I can customize templates by looking at what's there and adding/removing code to make it do what I want.

I know enough to be dangerous ;-)
12345j replied on at Permalink Best Answer Reply
12345j
oaky- copy root/concrete/blocks/date_nav to root/blocks/date_nav and then open up controller.php and change this line (line 79)
$pl->filterByAttribute('exclude_nav',false);
to
$pl->filterByAttribute('excluded_nav',false);
and apply the exclude nav to all blog pages- it wont have any effect on the date nav now.
leinteractive replied on at Permalink Reply
leinteractive
Makes sense...so I'm basically just telling it to look for an attribute that doesn't exist?
12345j replied on at Permalink Reply
12345j
yup. If you want to exclude from the date nav just apply the attribute excluded_nav to a page.
fastcrash replied on at Permalink Reply
fastcrash
guys, how can you hide the system(or single page?) page like 'confirm sign up'

because $pl->filterByAttribute('exclude_nav',true) will shown that page as well
zoinks replied on at Permalink Reply
"BLOG" is in my main navigation on every single page of my website. I can change line 79 as you said, but I'm not sure what you mean by "apply the exclude nav to all blog pages." I am trying to remove the blog posts from appearing in my main navigation dropdown menu on every single page of my site.