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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
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.
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.
Yes, thought about that, too, but was not sure if this is a reliable solution for plugins running in non-blog mode.
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).