We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 34108
    • 66 Posts
    Hi guys smiley I've checked rtfm and also searched the forums but I can't seem to find a recent answer to this question. Basically I have a main menu (driven by WayFinder) which has a few links in it to Facebook, Twitter, etc, which I want to force to open in a new window.

    Is there any way to do this when you're using Resource Type - Weblink?

    Thanks heaps
    Harmony
      • 28120
      • 380 Posts
      Try Link Attributes in the resource

      wf.attributes - outputs the link attributes of the current item
        • 34108
        • 66 Posts
        Thanks Sparky smiley I can't believe I didn't think of that, sorry. Works perfectly. Thanks for taking the time to reply.

        I've attached a screenshot of the field to change for anyone else who might have the same question.

        Thanks again!
        Harmony
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          You can also use target="new", which does the same thing and sounds better wink
            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
            • 6629
            • 60 Posts
            Quote from: sottwell at May 15, 2013, 11:09 PM
            You can also use target="new", which does the same thing and sounds better wink

            It's not exactly the same wink
            "_blank" will open each link in a new window/tab -> three links, three tabs
            "new" (or any other word) will open the links in the same new window/tab, "overwriting" the previous content -> three links, one tab