We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 38357
    • 178 Posts
    Thanks Bob.
    $modx->sendRedirect($url . ' target="_blank" ');

    This didn't work but inserting
     target="_blank"
    in the Link attributes and using
    $modx->sendRedirect($url,0);
    redirects to the remote page and displays in a new page successfully.

    I have now used a php function instead of the Redirect in the snippet and it seems to be POSTing the data successfully to the remote site. I just have to wait to see if the other site is able to decode the data correctly.
    Hopefully success smiley
    Thanks again for your great help.
    Have a beer on me smiley
      • 3749
      • 24,544 Posts
      Thanks! I guess that's why they're called "link attributes." I've never actually used that field. wink



      ------------------------------------------------------------------------------------------
      PLEASE, PLEASE specify the version of MODX you are using.
      MODX info for everyone: http://bobsguides.com/modx.html
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
      • They're also used in Wayfinder to specify a "container" top-level menu item that by default won't be given a URL if it has a submenu.

        "The categoryFoldersTpl is used when the item is a folder, and either has the template set to blank or has
        rel="category"
        in the link attributes field. The children of the item must be displayed for this template to be used as well."
          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
          • 38357
          • 178 Posts
          Thanks Susan,
          I didn't know that
          rel="category"
          could be used. Is there a resource which lists the properties that can be used as Link Attributes?
            • 3749
            • 24,544 Posts
            Quote from: bobd72 at Sep 11, 2012, 10:50 AM
            Thanks Bob.
            Have a beer on me smiley

            Thanks so much for the generous donation. I will indeed use it to buy several beers. You continue the trend of my receiving virtually all my donations from people who live outside the USA. I'm starting to think that there's something wrong with Americans. wink

            Link attributes: http://www.w3schools.com/tags/tag_link.asp
              Did I help you? Buy me a beer
              Get my Book: MODX:The Official Guide
              MODX info for everyone: http://bobsguides.com/modx.html
              My MODX Extras
              Bob's Guides is now hosted at A2 MODX Hosting
            • http://www.w3schools.com/tags/tag_link.asp

              Scroll down a bit to the "Optional" attributes. Interestingly, a target of "new" works the same as "_blank", and in fact I've had "_blank" replace with "new" automatically lately. Not sure where it's being replaced, and haven't been concerned enough to take the time to dig around for it. Probably a Revo URL cleaner of some kind.

              (dratted eyes... missed Bob's link to the same site!)
                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
                • 38357
                • 178 Posts
                From http://www.bloggertipsandtricks.com:
                When you use the target="_blank" attribute for the hyperlink <a> tag, all links with that attribute will open in new windows or tabs. When you use the target="new" or target="anything" attribute, the first click on any link with that attribute will open in a new window called new or anything. Any subsequent click on any link with that attribute will open in the same window called new or anything.