We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 14557
    • 48 Posts
    I’m using Ditto to output RSS for a tagged blog. What I would like to know is how can I insert <category> elements into the RSS output for each tag against the post? This seems to be the standard way of tagging feeds. I noticed in the Ditto classes there is a [+tagLinks+] placeholder in the RSS template but I don’t know enough to understand how to use it.

    Thanks

    John
      • 18397
      • 3,250 Posts
      If you followed the tagging screencast then all you need to do is add those same parameters to the call and Ditto will take care of things for you. The relevant parameters are tagData and tagDelimiter.
        • 14557
        • 48 Posts
        Hi Mark

        I had tried that, and looking at the preview it appeared that the RSS feed would always be empty if I did what you suggested. My initial guess was that it was because the URL used to access the XML feed did not contain the tag in the query string so everything was being filtered out. However, if I view the RSS source I see what is wrong, the last category for each post is not correctly completed, e.g.:
        <category>Activities</category>
        <category>Support Groups</category>
        <category>Swimming</category
        Note the last category does not have the > to close it.

        Is this a bug or am I doing something wrong?

        John
          • 18397
          • 3,250 Posts
          I just tested and confirmed, yes that is a bug. Please file a bug report via the bugtracker link in my signerature. Thanks.
            • 18397
            • 3,250 Posts
            Bug fixed (Now thats got to be a record!). The development version should fix the issue.
              • 14557
              • 48 Posts
              Done.
                • 14557
                • 48 Posts
                Just realised we cross posted! Wow, that was quick!