We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22289
    • 41 Posts
    I’m sure this is something very simple- but in FF, Livebookmarks, when I use the call:
    [!Ditto? &startID=`22` &format=`rss` &tpl=`ditto_rss_tpl`!]

    I see my last 3 items only when I subscribe to the feed, which I assume to be the default. When I use the call suggested in the Wiki:
    [!Ditto? &startID=`10` &format=`rss` &summarize=`15` &total=`15`!]


    I get... nothing- although in my source code I see the full 15 items.

    the chunk I am using is from the Ditto tutorial on Basic RSS... (http://ditto.modxcms.com/tutorials/custom-rss-feed.html)
      • 18397
      • 3,250 Posts
      Try running the URL or source code thru feedvalidator.org and post your results.
        • 19132
        • 199 Posts
        I’m having similar issues. I followed the tutorial Mark, from the same link above. But I don’t know what the URL is supposed to be.

        Sorry to sound like such an idiot, but RSS is one of those thing that I just don’t get. Snippets, plugins, most everything MODx, yes, but RSS, no.
          MySQL: 5.0.45
          PHP: 5.2.6
          Linux 2.6.9-023stab048.6-enterprise #1
          cURL enabled
          PDO enabled
          FFox Apple 3.6.8
          Firebug DIS-abled
          • 7804
          • 80 Posts
          according to myfriendscallmebill’s compiled documentation of Ditto, &summarize was changed to &display. Try using:

          [!Ditto? &startID=`10` &format=`rss` &display=`15`!]


          this works for me.
            • 22289
            • 41 Posts
            Thanks- feedvalidator was a great help.

            Part of the issue is that instead of

            [(site_url)][~[+id+]~]

            in my RSS chunk, I had changed it to pass along a URL that is external to my site that is associated with a document object. Sometimes, those have unfriendly URLs with ’?’ in them, which RSS validator doesn’t like.

            I then changed it back to my own id and, voila’ everything works fine. Still, in order to achieve the experience I want, I made a snippet [[redirect]] to give those id’s a 301 redirect to that same external URL.

            my template calls it with

            [!redirect? &newslink=`[*newslink*]`!]

            but of course, any URL with a ’?’ in it sends the user to a dead end. So, I just need to figure out my snippet call, i think...


              • 22289
              • 41 Posts
                • 22289
                • 41 Posts
                Oops. I spoke to soon. the RSS feed was fixed, the entire site went down:

                « MODx Parse Error »
                MODx encountered the following error while attempting to parse the requested resource:
                « PHP Parse Error »

                PHP error debug
                Error: array_combine() [function.array-combine]: Both parameters should have at least 1 element
                Error type/ Nr.: Warning - 2
                File: /home/mysite.com/manager/includes/document.parser.class.inc.php
                Line: 854
                Line 854 source: $parameters = array_combine( $matches[1], $matches[2] );

                Parser timing
                MySQL: 0.0889 s (4 Requests)
                PHP: 0.1698 s
                Total: 0.2586 s