We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25773
    • 73 Posts
    huh

    Im fairly new to Modx, but cant get the target="_blank" on weblinks on the menu to work.
    What am i missing.
    R
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Which version of MODx?

      In any case, if you’re using Wayfinder you’ll probably need to use a custom rowTpl chunk with [+wf.attributes+] in the a tags.
        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
        • 25773
        • 73 Posts
        Im using 1.0.4
          • 25773
          • 73 Posts
          grin
          Hi Ive sorted it now. The info was in the forum but wasnt making to much sense yesterday, have now figured it out, in case anyone else is reading this and struggling this is what I had to do.
          Go to chunks in your manager, look for mh.RowTpl

          insert [+wf.attributes] in the mh.RowTpl chunk see below
          <li[+wf.id+][+wf.classes+]><a href="[+wf.link+]" title="[+wf.title+]" [+wf.attributes+]>[+wf.linktext+]</a>[+wf.wrapper+]</li>

          save and set yor weblink for the resource to target="_blank"

          all works fine now.

          thanks for replying