We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 140
    • 21 Posts
    Hi,

    Im using way finder and constructed a similar 3 tier drop down like that of the ultimate drop down.

    What I would like is for "parentRowHereTpl" to only be applied to Tier 1 navigation items, when on the subpages of the Tier 1 section or the Tier 1 section page itself.

    If I had these pages:

    > Main Page (Level Zero - Tier 1)
    > Subpage - Drop Down - Tier 2
    > Sub- Subpage Drop Down - Tier 3


    So I would like "parentRowHereTpl" to put the "Main Page" button in the "Here" state even though I’m on the Tier 2 and Tier 3 pages.

    I looked in wayfinder.inc.php and found, but couldn’t configure correctly?

    elseif ($resource['id'] == $modx->documentObject['id'] && $resource['isfolder'] && $this->_templates['parentRowHereTpl'] && ($resource['level'] < $this->_config['level'] || $this->_config['level'] == 0) && $numChildren) {
                $usedTemplate = 'parentRowHereTpl';
    


    Has anyone tried to do this? Could anyone help me? Would be very appreciated, Thanks.
      • 140
      • 21 Posts
      Bump. Anybody? Heres an example of what I’m looking to do http://apple.com > if you click on ipod + itunes > then click on a subpage in the ipod section > The ipod + itunes button is still in that clicked in state.

      Anyone tried to do this before? Is there a way other than the above t occomplish this?

      Any help really appriated, Thanks .
        • 20288
        • 132 Posts
        Quote from: 5ink at Sep 25, 2008, 03:03 PM

        Hi,

        Im using way finder and constructed a similar 3 tier drop down like that of the ultimate drop down.

        What I would like is for "parentRowHereTpl" to only be applied to Tier 1 navigation items, when on the subpages of the Tier 1 section or the Tier 1 section page itself.

        If I had these pages:

        > Main Page (Level Zero - Tier 1)
        > Subpage - Drop Down - Tier 2
        > Sub- Subpage Drop Down - Tier 3


        So I would like "parentRowHereTpl" to put the "Main Page" button in the "Here" state even though I’m on the Tier 2 and Tier 3 pages.

        I looked in wayfinder.inc.php and found, but couldn’t configure correctly?

        elseif ($resource['id'] == $modx->documentObject['id'] && $resource['isfolder'] && $this->_templates['parentRowHereTpl'] && ($resource['level'] < $this->_config['level'] || $this->_config['level'] == 0) && $numChildren) {
                    $usedTemplate = 'parentRowHereTpl';
        


        Has anyone tried to do this? Could anyone help me? Would be very appreciated, Thanks.


        I wonder if you should be using &activeParentRowTpl instead of &parentRowHereTpl??

        From Kyle’s dev site:

        Description: The activeParentRowTpl template is used on the parent, grandparent, etc.. of the current item. The template is applied all the way up the document tree.
        http://www.muddydogpaws.com/development/wayfinder/parameters.html
          • 140
          • 21 Posts
          Hey ya know, I gotta a really good idea, maybe I should change my screen name to retard and ask the most obvious questions possible wink.

          j/k j/k

          But really your awesome, that solved my problem and I really appreciate it!

          Thank You, all the best.
            • 20288
            • 132 Posts
            Quote from: 5ink at Sep 30, 2008, 12:20 AM

            Hey ya know, I gotta a really good idea, maybe I should change my screen name to retard and ask the most obvious questions possible wink.

            j/k j/k

            But really your awesome, that solved my problem and I really appreciate it!

            Thank You, all the best.

            lol don’t think about that. You can see some of the silly questions I’ve asked before. All it is is trial and error. If one thing doesn’t work, try something different smiley Glad I could be of assistance.