We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17016
    • 138 Posts
    Sorry for this question which is probably easy to answer.

    I have integrated wayfinder in my template by adding [[Wayfinder? &startId=`0` &level=`3` ]]

    The output-result for the active menue point is:

    <li class="first active"><a href="1.html" title="main-page" >Home</a></li>

    But for my YAML-based menu "sliding door" I need an output for the activ link like this:

    <li class="first active"><strong>Home</strong></li>

    Can anybody help me, what I have to do to get this result?

    That would be great!!!

    Thanks a lot in advance!
    Letti
      • 22427
      • 793 Posts
      Modify your Wayfinder call to
      [[Wayfinder? &startId=`0` &level=`3` &hereTpl=`here_row`]]
      where [tt]here_row[/tt] is the name of this chunk:
      <li [+wf.classes+]><strong>[+wf.linktext+]</strong></li>
      (Maybe you have to add also [tt]&hereClass=`active`[/tt] , but I think that is taken by default.)
        • 17016
        • 138 Posts
        Thanks a lot! This helped!
          • 22840
          • 1,572 Posts
          or just add this to your style sheet:
          li.first {
          font-weight: bold;
          }
            • 12508
            • 63 Posts
            I’m also using YAML and have the same problem. This solution is not working for me and I’m trying to find what I did wrong.
            This is the code I use (copied from this forum):
            [[Wayfinder? &startId=`0` &hereTpl=`here_row`]]

            and created a chunk named "here_row":
            <li [+wf.classes+]><strong>[+wf.linktext+]</strong></li>

            I get instead of the Link name this code on my website:
            [+wf.linktext+]

            Can anybody help me to find the error?
            Thank you in advance.
              • 12508
              • 63 Posts
              I’m here again, I also noticed that the class is not appearing. Instead of the class name I get: [+wf.classes+]

              Please help me.
              Thank you.
                • 36926
                • 701 Posts
                Quote from: hvillega at Sep 05, 2010, 09:22 AM

                I’m here again, I also noticed that the class is not appearing. Instead of the class name I get: [+wf.classes+]

                Please help me.
                Thank you.

                What modx are you using, evo or revolution?
                  • 12508
                  • 63 Posts
                  Hi,

                  I’m using revolution 2.0
                    • 36926
                    • 701 Posts
                    Quote from: hvillega at Sep 05, 2010, 12:21 PM

                    Hi,

                    I’m using revolution 2.0

                    The tag syntax changed in revo, see here:
                    http://rtfm.modx.com/display/revolution20/Tag+Syntax

                    the wayfinder docs use evo syntax

                    So your here row chunk should be:
                    <li [[+wf.classes]]><strong>[[+wf.linktext]]</strong></li>




                      • 12508
                      • 63 Posts
                      it works!
                      Thank you Benny
                      smiley