We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25322
    • 78 Posts
    The basic blog tutorial posted was really good last week and helped out alot of newbies like myself.

    can someone do the same for creating an rss feed of the blog entries. on the wiki here http://wiki.modxcms.com/index.php/Basic_RSS_feed

    its gives one line of code for a basic rss feed:

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

    Does this go in the template for the blog page? does this create bring up the rss icon in the address bar in the browser??

    Any chance of a step by step guide?

    cheers

      • 11975
      • 2,542 Posts
      Hi,

      you have to put this call in a new document.
      Change the page settings and choose type=text/xml and select the blank template.

      :-)
        Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
        • 2762
        • 1,198 Posts
        You have a good example in the default content of modx.

        1) create a page:
        - alias feed.rss
        - file type text/xml
        - template blank
        put your ditto code

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


        replace &startID=`10` with the id your news folder

        add in the head of your template:

        <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="[(site_url)][~11~]" />


        replace [~11~] with the id your rss document

        done smiley
          Free MODx Graphic resources and Templates www.tattoocms.it
          -----------------------------------------------------

          MODx IT  www.modx.it
          -----------------------------------------------------

          bubuna.com - Web & Multimedia Design
          • 25322
          • 78 Posts
          cheers guys. i will give that a go
            • 25322
            • 78 Posts
            worked perfect.. cheers
              • 3767
              • 40 Posts
              Quote from: banzai at Feb 08, 2007, 05:06 PM

              You have a good example in the default content of modx.

              1) create a page:
              - alias feed.rss
              - file type text/xml
              - template blank
              put your ditto code

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


              replace &startID=`10` with the id your news folder

              add in the head of your template:

              <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="[(site_url)][~11~]" />


              replace [~11~] with the id your rss document

              done smiley

              Excellent, and it worked when i added a live bookmark to my browser, however when adding it to google reader I get nothing. Does the page need to be published, and if it does, where is a good place to publish it? Documents published under the root are added to WayFinder, and ones published where I put it (News, where the blog is), end up being blog posts, haha.
                • 2762
                • 1,198 Posts
                Quote from: bocmaxima at Feb 08, 2007, 11:49 PM

                Excellent, and it worked when i added a live bookmark to my browser, however when adding it to google reader I get nothing. Does the page need to be published, and if it does, where is a good place to publish it? Documents published under the root are added to WayFinder, and ones published where I put it (News, where the blog is), end up being blog posts, haha.
                publish the document and disable ’’show in menu’’ option.
                  Free MODx Graphic resources and Templates www.tattoocms.it
                  -----------------------------------------------------

                  MODx IT  www.modx.it
                  -----------------------------------------------------

                  bubuna.com - Web & Multimedia Design
                  • 3767
                  • 40 Posts
                  Quote from: banzai at Feb 09, 2007, 05:03 AM

                  Quote from: bocmaxima at Feb 08, 2007, 11:49 PM

                  Excellent, and it worked when i added a live bookmark to my browser, however when adding it to google reader I get nothing. Does the page need to be published, and if it does, where is a good place to publish it? Documents published under the root are added to WayFinder, and ones published where I put it (News, where the blog is), end up being blog posts, haha.
                  publish the document and disable ’’show in menu’’ option.

                  Awesome smiley It still doesnt show up in google reader unfortunately...and if I publish it under the news section, it still comes up as a blog post sad
                    • 11975
                    • 2,542 Posts
                    Hi,

                    to skip it from the ditto listing you can add a filter to your call
                    &filter=`id,xml_doc_id,2`
                    replace the xml_doc_id by the id of your rss doc.

                    :-)
                      Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
                      • 3767
                      • 40 Posts
                      Quote from: heliotrope at Feb 09, 2007, 11:04 AM

                      Hi,

                      to skip it from the ditto listing you can add a filter to your call
                      &filter=`id,xml_doc_id,2`
                      replace the xml_doc_id by the id of your rss doc.

                      :-)

                      PERFECT! laugh

                      Might as well keep this ball rolling.

                      1. Is there a way to change the title of the feed. When I put it into Google Reader it just comes up as RSS Feed.
                      2. When I look at www.mysite.com/feed I get this error.

                      XML Parsing Error: junk after document element
                      Location: http://www.starjunction.net/feed
                      Line Number 155, Column 8:</rss> ]]></description>
                      -------^

                      Is there a way to clear that up so it shows a normal feed page?