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

    I am fighting with Wayfinder... I hope someone can help me...

    I already have this:

    [[Wayfinder? &startId=`0` &level=`2` &sortOrder=`DESC` &firstClass=`last` &lastClass=`` &rowTpl=`mh.RowTpl`]]

    in mh.RowTpl I have:

    <li[[+wf.classes]]><a href="[[+wf.link]]" title="[[+wf.title]]">[[+wf.title]]</a>[[+wf.wrapper]]</li>

    the output is:

    <ul>
    <li class="last"><a href="full-width" title="full-width">full-width</a></li>
    <li><a href="style-demo" title="style-demo">style-demo</a></li>
    <li class="active"><a href="http://www.xxxxxxxx.com/" title="Home">Home</a></li>
    </ul>

    But I want to replace <ul> with <ul id="topnav">. How can I ad id="topnav" ?

    I have been playing with &outerTpl containing:

    <ul id="topnav"[+wf.classes+]>
    [+wf.wrapper+]
    </ul>

    But when using this the only output in the webpage I get is: [+wf.wrapper+]

    I hope someone can help me with this...


      • 28042 ☆ A M B ☆
      • 24,524 Posts
      You need to use the correct tags for the version of MODx you’re using. If you’re using Revo, the placeholder tags are [[+wf.classes]] and [[+wf.wrapper]].

      Out of curiosity, why would you want the classname of the first item to be "last"?
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 8609
        • 607 Posts
        Quote from: dimitrivisser at Mar 20, 2011, 09:27 PM


        But I want to replace <ul> with <ul id="topnav">. How can I ad id="topnav" ?

        I have been playing with &outerTpl containing:

        <ul id="topnav"[+wf.classes+]>
        [+wf.wrapper+]
        </ul>

        But when using this the only output in the webpage I get is: [+wf.wrapper+]

        I hope someone can help me with this...



        <ul id="topnav"[[+wf.classes]]>
        [[+wf.wrapper]]
        </ul>
          • 7448
          • 4 Posts
          Thank you both for your help! I have been busy with it for hours without seeing it myself huh

          Quote from: sottwell at Mar 20, 2011, 10:00 PM

          Out of curiosity, why would you want the classname of the first item to be "last"?

          I am porting a template to Modx and only try to get the exact same output. Also had to use &sortOrder=`DESC`. The first item with classname "last" is the last item in the menu after it is formatted with css.