We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4080
    • 139 Posts
    I have a feeling there’s a super simple answer to this but I’m hittin’ walls. All I need to do is have a sub nav area (non-drop-down) pull it’s parent as the first <li>. I’ve attached a screenshot so whomever is reading this can get a visual. Basically I need to duplicate the main nav item in the sub nav (tabbed) area. The red arrow indicates what I want to duplicate and insert before the actual sub nav items. I’d like to avoid using a Weblink resource redirecting to its parent as I think this would look sort of sloppy.

    Here’s the current Wayfinder call:
    [!Wayfinder? &startId=`[[UltimateParent? &topLevel=`1`]]` &level=`0` &rowTpl=`sub-nav-row-tpl` &firstClass=`first`!]
      • 22427
      • 793 Posts
      Make use of the parameters [tt]&displayStart[/tt] and [tt]&startItemTpl[/tt] .
      See http://rtfm.modx.com/display/ADDON/Wayfinder#Wayfinder-Parameters
        • 4080
        • 139 Posts
        Thanks for the help! Unfortunately this parameter displays the item before the <ul> and I’m hoping to have it be the first entry in the list as a <li> just like the rest of the navigation.
          • 4310
          • 2,310 Posts
          Untested but try something like:
          &outerTpl
          [+wf.wrapper+]</ul>  

          &startItemTpl
          <ul><li[+wf.classes+]><a href="[+wf.link+]" title="[+wf.title+]" [+wf.attributes+]>[+wf.linktext+]</a>[+wf.wrapper+]</li>