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??
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??
how comfortable are you with php?
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 ;-)
I know enough to be dangerous ;-)
oaky- copy root/concrete/blocks/date_nav to root/blocks/date_nav and then open up controller.php and change this line (line 79) to and apply the exclude nav to all blog pages- it wont have any effect on the date nav now.
$pl->filterByAttribute('exclude_nav',false);
$pl->filterByAttribute('excluded_nav',false);
Makes sense...so I'm basically just telling it to look for an attribute that doesn't exist?
yup. If you want to exclude from the date nav just apply the attribute excluded_nav to a page.
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
because $pl->filterByAttribute('exclude_nav',true) will shown that page as well
"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.