We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19499
    • 30 Posts
    I have searched high and low, but still do not understand how to create a basic feed in MODx?

    Anyone want to give a basic tutorial?

    Thanks - MikeT
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      I was able to do it for the first time a few weeks ago. You create a document set to "not show in menu", with an alias like "feed.rss", a blank template and in the Page settings tab a content type of text/xml. For content, it has only the Ditto call:
      [[Ditto? &startID=`10` &format=`rss` &summarize=`20` &total=`20`]]

      That’s all I did; this site actually has three different feeds, the Ditto calls just have different startID values.
        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
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        I’ve created the rss feed document, and it’s a very nice xml file. Now... how do I deal with with a link to "subscribing" to the feed? If I just make a link to the document, some browsers just display the raw xml file, some pretty it up, some offer different ways of subscribing.
          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
          • 22303 MODX Staff
          • 10,725 Posts
          This is why I use FeedBurner to serve all my feeds. It handles all of that very nicely, and even formats the raw xml a little more nicely for direct browser access (and includes subscription links to a variety of services). Plus the statistics of how many subscribers is pretty useful too.
            • 14779
            • 256 Posts
            I know absolutely nothing about rss. How would I integrate feedburner into modx?
              PM me to find out how you can get a FREE ipad 2!
              • 26435
              • 1,193 Posts
              Quote from: joshlfisher at Jan 04, 2007, 03:47 PM

              I know absolutely nothing about rss. How would I integrate feedburner into modx?
              The simple answer is... You wouldn’t.

              It is not something you can integrate INTO MODx. It is a service provided by http://feedburner.com.
              You go to there website and give them the URL of the document that outputs your XML RSS feed.

              There are a couple of steps there, but the user interface of the site is pretty informative, and since this isn’t really a support site for feedburner the chances of getting questions related to the feedburner service answered would be infinitely better if you asked them at http://forums.feedburner.com/

              -sD-
              Dr. Scotty Delicious, Scientist.
                Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
                All of the above... in no specific order.


                I send pointless little messages
                • 14779
                • 256 Posts
                OK, I understand about feedburner.
                My questions now are:

                How do I create an rss feed? And how would it work?

                [[Ditto? &startID=`10` &format=`rss` &summarize=`20` &total=`20`]]


                In this example, is &startID the document that the RSS feed is generated from?
                The start in &startID implies that it is the first of n documents.
                Also, when there is a change, is it a change to the same doc?
                Or a new document that is created?
                Can I create an RSS feed from a folder of non-sequential ID docs?

                This is no biggie, I’d just like to understand it. cool
                  PM me to find out how you can get a FREE ipad 2!
                  • 28042 ☆ A M B ☆
                  • 24,524 Posts
                  The page where the Ditto call is needs to be set to type/xml, and given an alias of whatever.rss, and no template. You probably don’t want it to show in your menu, either.

                  Then it will generate a page, with raw xml, using the documents in the folder(s) specified (but not including that folder/document) to make the feed from.

                  It’s up to the client to deal with the xml page.
                    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
                    • 14779
                    • 256 Posts
                    So, if you wanted to create a couple different feeds on your site, you would just create different whatever.rss docs pointing to different folders?
                      PM me to find out how you can get a FREE ipad 2!
                      • 22303 MODX Staff
                      • 10,725 Posts
                      Quote from: joshlfisher at Jan 07, 2007, 06:29 PM

                      So, if you wanted to create a couple different feeds on your site, you would just create different whatever.rss docs pointing to different folders?
                      Precisely...