'here' and parent class for listings?

Stephen C.'s Avatar

Stephen C.

30 Jun, 2012 04:47 PM

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!

  1. 2 Posted by Stephen C. on 30 Jun, 2012 04:49 PM

    Stephen C.'s Avatar

    I'm referring to the menu on the left.

  2. Support Staff 3 Posted by Travis Schmeisser on 30 Jun, 2012 05:35 PM

    Travis Schmeisser's Avatar

    Are you running 3.2.4?

  3. 4 Posted by Stephen C. on 30 Jun, 2012 05:36 PM

    Stephen C.'s Avatar

    Yes.

  4. Support Staff 5 Posted by Travis Schmeisser on 30 Jun, 2012 05:37 PM

    Travis Schmeisser's Avatar

    Sent you a beta, might be a 3.2.4 bug - I can't recall.

  5. 6 Posted by Stephen C. on 30 Jun, 2012 05:43 PM

    Stephen C.'s Avatar

    Unfortunately, 3.2.5 beta didn't help. The parent_here class still goes away once viewing the listing.

  6. Support Staff 7 Posted by Travis Schmeisser on 30 Jun, 2012 05:53 PM

    Travis Schmeisser's Avatar

    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.

  7. 8 Posted by Stephen C. on 30 Jun, 2012 06:02 PM

    Stephen C.'s Avatar

    I am. The link to the listing is like this.

    <h4><a href="{page_url}">{title}</a></h4>

  8. Support Staff 9 Posted by Travis Schmeisser on 30 Jun, 2012 06:04 PM

    Travis Schmeisser's Avatar

    What is your nav tag?

  9. 10 Posted by Stephen C. on 30 Jun, 2012 06:05 PM

    Stephen C.'s Avatar

    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"}

  10. Support Staff 11 Posted by Travis Schmeisser on 30 Jun, 2012 06:10 PM

    Travis Schmeisser's Avatar

    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/

  11. 12 Posted by Stephen C. on 30 Jun, 2012 06:24 PM

    Stephen C.'s Avatar

    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.

  12. Support Staff 13 Posted by Travis Schmeisser on 30 Jun, 2012 06:30 PM

    Travis Schmeisser's Avatar

    What if you add a start_from? Mine is working fine…

  13. 14 Posted by Stephen C. on 30 Jun, 2012 06:33 PM

    Stephen C.'s Avatar

    {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.

  14. Support Staff 15 Posted by Travis Schmeisser on 01 Jul, 2012 05:35 PM

    Travis Schmeisser's Avatar

    I'll have to retest with deeper levels first thing tomorrow. I'm away all day today. Hang tight!

  15. Support Staff 16 Posted by Travis Schmeisser on 02 Jul, 2012 07:25 PM

    Travis Schmeisser's Avatar

    We're working on a new beta as we speak. Hang tight!

  16. 17 Posted by Stephen C. on 02 Jul, 2012 10:28 PM

    Stephen C.'s Avatar

    Cool. Thanks for the updates.

  17. Support Staff 18 Posted by Travis Schmeisser on 03 Jul, 2012 03:50 PM

    Travis Schmeisser's Avatar

    Update sent via email.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Recent Discussions

18 May, 2013 03:07 PM
18 Sep, 2012 03:52 PM
17 May, 2013 02:23 PM
17 May, 2013 11:45 PM
17 May, 2013 08:43 PM

 

17 May, 2013 06:14 PM
17 May, 2013 04:54 PM