We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17802
    • 190 Posts
    Hi! I hope someone can help me.
    I’d like to use a tv that lets the website editors add a link to a page. So I’m using a tv with Input Type URL and the hyperlink widget. I’d like to add rel=’external’ to every hyperlink so it plays well with a piece of javascript I’m using. But when I put rel=’external’ in the attributes text field of the hyperlink widget, MODx outputs this on the page:
    rel=\'external\'

    How can I make MODx stop escaping the quotation marks? I treid using html entities but that didn’t work out. Any help is appreciated!
      Thanks for MODx - I love it!
      • 27376
      • 576 Posts
      Try using double quotes instead. Single quoted HTML tags aren’t good practice to use IMO.
        • 17802
        • 190 Posts
        I agree, so that’s what I tried first wink
        Didn’t work either, they’re being escaped with backslashes as well. Also, the hyperlink widget generates single quotes for the other attributes, too (title, href). The validator doesn’t complain about that, by the way, so I don’t think it’s that big a deal.
          Thanks for MODx - I love it!
          • 27376
          • 576 Posts
          Upon further research it looks like we’ve got a bug on our hands!

          http://modxcms.com/bugs/task/921
            • 17802
            • 190 Posts
            Ah, I feared that would be the case. Thanks for reporting it, I hope it’ll be fixed soon wink
              Thanks for MODx - I love it!
              • 27376
              • 576 Posts
              The issue has been fixed in the 0.9.6.1 development branch. You can take a look at (and download) the patched files here:
              https://mirror1.cvsdude.com/trac/rethrash/tattoo/changeset?new=tattoo%402812&old=tattoo%402811

              To download the patch, scroll to the bottom of that page and download the zip archive.
                • 17802
                • 190 Posts
                Yay! I downloaded and installed the patch - works like a charm. Thanks! grin
                  Thanks for MODx - I love it!