We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28042 ☆ A M B ☆
    • 24,524 Posts
    Looks good to me wink

    If it’s any consolation, you’re following in my footsteps, except I just tried things until I found something that worked instead of getting help; there just weren’t any forums or mailing lists as friendly as this one back then.
      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
      • 28033
      • 925 Posts
      If I run the plugin as is, it works as expected (taking away on the site and the RSS feed).

      Now, if I try adding my code in, it doesn’t work (although the main site isn’t affected by it). I’m gonna try to find out what’s the issue, but when I change things, like adding ", `, ’ around the text/xml, it gives feed errors.

      If someone happens to know my syntax error, please feel free to post it. smiley

      EDIT: I got it to work doing this...

      $contentType = $modx->documentObject['contentType'];
      if($contentType == "text/xml") {
      ...
      }
        My Snippets
        -> PopUpChunk v1.0