'here' and parent class for listings?
I'm trying to keep a menu open and the respective sub-menu item selected when on a listing page tied to the sub-menu page.
This shows menu open and sub-menu selected, which is
correct:
http://www.brehmcenter.com/initiatives/reelspirituality/film/reviews/
But when you view an article (listing) the menu closes:
http://www.brehmcenter.com/initiatives/reelspirituality/film/review...
I can't seem to find a way to keep the menu open and sub-menu item selected. Do you have suggestions?
Thanks!
2 Posted by Stephen C. on 30 Jun, 2012 04:49 PM
I'm referring to the menu on the left.
Support Staff 3 Posted by Travis Schmeisser on 30 Jun, 2012 05:35 PM
Are you running 3.2.4?
4 Posted by Stephen C. on 30 Jun, 2012 05:36 PM
Yes.
Support Staff 5 Posted by Travis Schmeisser on 30 Jun, 2012 05:37 PM
Sent you a beta, might be a 3.2.4 bug - I can't recall.
6 Posted by Stephen C. on 30 Jun, 2012 05:43 PM
Unfortunately, 3.2.5 beta didn't help. The parent_here class still goes away once viewing the listing.
Support Staff 7 Posted by Travis Schmeisser on 30 Jun, 2012 05:53 PM
And you're accessing the page via {page_url}? I can't recreate this. Make sure your template group is not named the same as the page.
8 Posted by Stephen C. on 30 Jun, 2012 06:02 PM
I am. The link to the listing is like this.
<h4><a href="{page_url}">{title}</a></h4>Support Staff 9 Posted by Travis Schmeisser on 30 Jun, 2012 06:04 PM
What is your nav tag?
10 Posted by Stephen C. on 30 Jun, 2012 06:05 PM
Here's the left nav tag. Am I missing something?
{exp:structure:nav mode="full" add_level_classes="yes" status="Open" exclude="844|428|422|429"}Support Staff 11 Posted by Travis Schmeisser on 30 Jun, 2012 06:10 PM
Might be because of the mode, which has been deprecated. We now use the two depth parameters to mimic the older behavior: http://buildwithstructure.com/documentation/navigation_examples/
12 Posted by Stephen C. on 30 Jun, 2012 06:24 PM
I just played around with it. Here's what's happening.
If I use
{exp:structure:nav_full add_level_classes="yes" status="Open"}the 'parent_here' is staying when viewing the listing. However, the 'add_level_classes' no longer works.If I use
{exp:structure:nav show_depth="2" add_level_classes="yes" status="Open"}the 'parent_here' does not work.Support Staff 13 Posted by Travis Schmeisser on 30 Jun, 2012 06:30 PM
What if you add a start_from? Mine is working fine…
14 Posted by Stephen C. on 30 Jun, 2012 06:33 PM
{exp:structure:nav start_from="/" show_depth="2" add_level_classes="yes" status="Open" exclude="844|428|422|429"}does not give me 'parent_here' classes when viewing the listing (which is level 3). It only shows when on a level 2 page.Support Staff 15 Posted by Travis Schmeisser on 01 Jul, 2012 05:35 PM
I'll have to retest with deeper levels first thing tomorrow. I'm away all day today. Hang tight!
Support Staff 16 Posted by Travis Schmeisser on 02 Jul, 2012 07:25 PM
We're working on a new beta as we speak. Hang tight!
17 Posted by Stephen C. on 02 Jul, 2012 10:28 PM
Cool. Thanks for the updates.
Support Staff 18 Posted by Travis Schmeisser on 03 Jul, 2012 03:50 PM
Update sent via email.