Menu

RSS Feed doesn't work

Help
2013-09-08
2013-09-09
  • Christoph Michael Becker

    I tried to use the RSS feed of News 1.1.0-beta12, but it doesn't work. In rss.php line 132 there's a call to $entry->link(), but the method seems to be undefined. Removing the line is possible; however, it would be nice to have a link to the news page (or perhaps even better to the individual entry in blog mode).

    A minor issue is that the Content-Type header cannot be sent, as a XML processing instruction is already written in the first line of rss.php, and there's a newline written in line 115.

     
  • David Stutz

    David Stutz - 2013-09-09

    Thanks for the info.

    The link of an entry seems to be a problem. For now I will remove the line because there is no obvious way for determining the link automatically.

    I will fix the heade issue, too.

     
  • Christoph Michael Becker

    Thanks.

    Regarding the link: a viable workaround might be to add an appropriate setting (say, "link page") to the category configuration. This would be accessible from rss.php, and so a link to the overview page (resp. the entry in blog mode) could be generated.

     
  • David Stutz

    David Stutz - 2013-09-09

    Yes, thought about that, too, but was not sure if this is a reliable solution for plugins running in non-blog mode.

     
    • Christoph Michael Becker

      The suggestion might not even be reliable in blog mode, as the user might rename or (re)move the page. On the other hand, RSS feed items are most likely being read when they're new.

      Another technique might be to allow for permalinks, i.e. accept something like ?news-entry=1234567890 to display the news entry only (instead of the content of a particular page).

       

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.