0
Welcome Guest! Login
0 items Join Now

How to create a rss feed for my blog?

    • Dochere2's Avatar
    • Dochere2
    • Jr. Rocketeer
    • Posts: 23
    • Thanks: 0

    How to create a rss feed for my blog?

    Posted 17 years 3 weeks ago
    • Hey guys, how do I set it up so the blog on my site has a rss or atom feed?

      Thanks!
    • Last Edit: 17 years 3 weeks ago by Dochere2.
    • Dochere2's Avatar
    • Dochere2
    • Jr. Rocketeer
    • Posts: 23
    • Thanks: 0

    Re: How to create a rss feed for my blog?

    Posted 17 years 3 weeks ago
    • Update: I see that my home page is set as default as a home page blog layout, and that it has the parameter show a feed link set to yes. When I click on the little orange feed icon in the browser, the feed shows.

      When I set my actual blog to the same set-up, the link goes to a 404 error page, not the standard joomla one, but one from my server...

      Any ideas? Thank you!
    • Dochere2's Avatar
    • Dochere2
    • Jr. Rocketeer
    • Posts: 23
    • Thanks: 0

    Re: How to create a rss feed for my blog?

    Posted 17 years 3 weeks ago
    • Another update: when I turn off "add suffix to URL's" in global configuration, the atom feed works fine, but the rss feed still does not work...
    • Dochere2's Avatar
    • Dochere2
    • Jr. Rocketeer
    • Posts: 23
    • Thanks: 0

    Re: How to create a rss feed for my blog?

    Posted 17 years 2 weeks ago
    • I found this:

      'RSS places restrictions on the first non-whitespace characters of the data in <link> and <url> elements. The data in these elements must begin with an IANA-registered URI scheme, such as http://, https://, news://, mailto: and ftp://. '

      Could it be that the rss feed that is to be created is creating an error due to the fact that the links in my articles that it is generating the feed for, have links that are like "section/artcile" instead of " www.site.com/section/article " ...

      Just a though.
    • Dochere2's Avatar
    • Dochere2
    • Jr. Rocketeer
    • Posts: 23
    • Thanks: 0

    Re: How to create a rss feed for my blog?

    Posted 17 years 2 weeks ago
    • Well, I never figured out how to get the rss version of the feed to work properly, but I did indeed get the atom feed to work. That, I guess, is enough for me.

      The good news is, I figured out how to stop the rss feed option from showing in the browser. The file to edit is in this path:

      /(your site)/components/com_content/views/category/view.html.php
      and
      /(your site)/components/com_content/views/section/view.html.php

      To stop the rss option, you want to remove:
      $attribs = array('type' => 'application/rss+xml', 'title' => 'RSS 2.0');
                     $document->addHeadLink(JRoute::_($link.'&type=rss'), 'alternate', 'rel', $attribs);

      To stop the atom option, you want to remove:
      $attribs = array('type' => 'application/atom+xml', 'title' => 'Atom 1.0');
                     $document->addHeadLink(JRoute::_($link.'&type=atom'), 'alternate', 'rel', $attribs);

      This will allow you to select the show feed option, without using the syndicate model, to have the feed icon show in the browser for the page you have set a feed for. It allows you to select either the rss, or, the atom feed option (in my case the atom because it was the only one that worked correctly) but not both as it is set to do as default.

      I hope this helps anyone who may have this same issue.

Time to create page: 0.076 seconds