We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 44314
    • 44 Posts
    Hi, i'm using revo 2.2.8 and i've set up a blog using articles 1.7.1 with a couple of first posts also set up. I'd like visitors to be able to hit an orange rss icon and subscribe to the blog, so that any new posts are notified to subscribers by email for example. I've searched everywhere and nothing has worked. I can see there are sample chunks provided by articles that relate to rss feeds but i'm unable to implement anything or to get such functionality to work. I also went to a site called feedburner and when i enter the url for my blog page it just states that it is invalid ("The URL does not appear to reference a valid XML file"). Could anyone point me in the right direction?

    This question has been answered by BobRay. See the first response.

    • discuss.answer
      • 3749
      • 24,544 Posts
      Rather than answer you here, I just did a blog post on this: http://bobsguides.com/blog.html/2013/08/19/create-an-rss-feed-for-your-articles-blog/. smiley

      Let me know if it works for you.
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
        • 44314
        • 44 Posts
        Great timing smiley I'm going to head over there now and give it a try. I'll let you know how i get on shortly, Cheers Bob.
          • 44314
          • 44 Posts
          Ok, so i've followed the steps in your guide; 1) created the rss-feed image link on the blog page itself (easy enough), 2) Created a new document in the document tree where all my website pages reside (a 'resource') and placed in your example code (whilst filling in my own details such as page titles etc).
          3) created a new chunk (The RSS Item Tpl). And now when i click the rss icon link on my blog page i'm brought to the correct page in order to subscribe, so it appears to work fine at this stage..

          Just a few questions-

          On step 2 in your guide- 'creating a new resource' it mentions that this is done using getResources. What is this? i didn't do anything involving getResources, i just created a new document and placed in your code and then took the id number of that resource and placed it inside my rss-icon image link, as advised.

          On step 3, i notice Articles already provides a chunk called sample.ArticlesRssItem , and the code within it is very similar to the code in the chunk you provided which you name as rssItem in your guide. So what i did was duplicate the chunk provided by Articles called sample.ArticlesRssItem (renaming it to Own.ArticlesRssItem) and i was going to amend the various lines of code inside it to match your example rssItem, but didn't for the moment and the rss icon feed button link still appears to work. But i haven't referenced this chunk anywhere so is it actually being used?

          And finally, the page that i'm brought to when clicking the subscribe button doesn't look too pretty, am i able to use a template for this page so that it's in keeping with the rest of the site? And is it possible for people to subscribe to the blog with their email address? updates from the blog being sent to subscribers' email adresses is my goal here.

          Thanks for taking the time to create your guide, it's brought me closer to achieving the desired functionality of users being able to subscribe to the blog!

            • 3749
            • 24,544 Posts
            I'm having trouble understanding some of your questions.

            The feed I describe in the blog article is meant to be displayed in an RSS feed client like FeedBurner. It sounds like you may be using it a different way.

            With respect to getResources, there's a getResources tag in the content to be pasted into the resource you create. It creates the RSS feed XML.

            I probably did copy the Articles RSS Tpl chunk when I originally created the feed, but if you're not naming that chunk in the &tpl property of the getResources tag, it's not using that chunk.

            There's no "Subscribe" button created when you follow the blog article, so I'm not sure what "Subscribe" button you mean.

            If you're using the Subscribe extra, there's a CSS file to style the subscribe form -- maybe it's missing or not being loaded for some reason. Do a "View Source" on the page and click on the CSS file link to see if it's live. If it is live, you can copy and modify the CSS file to style the page the way you want it, though if you do that, you should specify your CSS file in the tag on the Subscribe form page so it won't get overwritten if you update Subscribe.
              Did I help you? Buy me a beer
              Get my Book: MODX:The Official Guide
              MODX info for everyone: http://bobsguides.com/modx.html
              My MODX Extras
              Bob's Guides is now hosted at A2 MODX Hosting
              • 44314
              • 44 Posts
              Hi Bob, thanks for your reply. I had a closer look at the code in step 2 of your guide and i can now see the getResources tag so this makes sense. When i say 'subscribe', i'm just referring to the term people use for the functionality of the rss icon, in that when they see that logo on a blog, they can click it and subscribe to the latest information being posted. I think i'll be Ok in setting up with feedburner now or another such service that allows subscribers to receive updates into their inbox as an option. Thanks again for the guide, i guess that's solved my problem smiley
                • 3749
                • 24,544 Posts
                You're welcome. smiley

                The Feeds here on the MODX Forum may have confused you (and/or me). Usually, an RSS-feed icon is a link to a page that puts out XML to be displayed by something like FeedBurner. The user pastes that link in at FeedBurner (or some other feed delivery engine).

                However, the link from the icon in the Forums (e.g., the one on this page), takes you to another page with multiple feeds to select from. The icons on *that* page are to be pasted in at FeedBurner.
                  Did I help you? Buy me a beer
                  Get my Book: MODX:The Official Guide
                  MODX info for everyone: http://bobsguides.com/modx.html
                  My MODX Extras
                  Bob's Guides is now hosted at A2 MODX Hosting