Page 1 of 1

Atom Feed for comments

Posted: Mon Nov 03, 2008 5:40 pm
by rwiener
The standard sidebar plugin for syndication offers a wide range of subscription options. Comments, however, can be syndicated via RSS 2.0 only.

Is there a reason for this? Is there a way to subscribe to comments using the Atom feed format?

TIA
Rudi Wiener

Re: Atom Feed for comments

Posted: Mon Nov 03, 2008 5:55 pm
by garvinhicking
Hi!

No, comments can also all be routed through rss.php?version=XXX. However adding a format for each of those simply was not found useful and too cluttering. Comments in atom should be available through rss.php?version=atom1.0&type=comments

HTH,
Garvin

Atom feed for comments, where to configure

Posted: Wed Nov 05, 2008 9:24 am
by rwiener
Hi Garvin,

thanks for the reply. Now I dug through many forum-posts related to syndication and through the online docs but didn't find a note _where_ to configure this >>rss.php?version=atom1.0&type=comments<<. Can you give me a hint?

One more question related to this: Is there a way to subscribe via RSS/Atom to both the blog entries plus their comments in one step?

Kind regards
Rudi

PS: Would the BOOK cover such issues as this syndication stuff, especially how to configure it?

Re: Atom feed for comments, where to configure

Posted: Wed Nov 05, 2008 10:19 am
by garvinhicking
Hi!
thanks for the reply. Now I dug through many forum-posts related to syndication and through the online docs but didn't find a note _where_ to configure this >>rss.php?version=atom1.0&type=comments<<. Can you give me a hint?
What do you mean? You would need to add a HTML nugget with a manual link to that format. Or you would need to patch the syndication plugin with PHP code inside the include/plugin_internal.inc.php file, the serendipity_syndication_plugin class, method "generate_content()".
One more question related to this: Is there a way to subscribe via RSS/Atom to both the blog entries plus their comments in one step?
No, there are no combined formats as they are technically exclusive.
PS: Would the BOOK cover such issues as this syndication stuff, especially how to configure it?
Yes, it does cover all parameters available to rss.php.

Regards,
Garvin

Re: Atom feed for comments, where to configure

Posted: Wed Nov 05, 2008 2:45 pm
by rwiener
Hi Garvin!

Tanks again.
didn't find a note _where_ to configure this >>rss.php?version=atom1.0&type=comments<<. Can you give me a hint?

What do you mean? You would need to add a HTML nugget with a manual link to that format. Or you would need to patch the syndication plugin with PHP code inside the include/plugin_internal.inc.php file, the serendipity_syndication_plugin class, method "generate_content()".
You got what I mean. You answered it anyway. I want to give the readers of my blog the opportunity to subscribe to both the entries and the comments with both RSS 2.0 and with Atom 1.0. For today's feed readers this would be perfect, I think.

Fiddling with the php files that make up serendipity is not something I'd like to do. Serendipity is a fine piece of work, I think. And I don't want to lose my changes with the next update.

So the only realistic option would be to make up a new plugin of its own. But for now I'll stick with the options available and offer RSS 2.0 only. (As son as I enable Atom for the entries, some readers will start asking the same question I did ask: why no comments for Atom)?
PS: Would the BOOK cover such issues as this syndication stuff, especially how to configure it?

Yes, it does cover all parameters available to rss.php.
Is there somewhere some deeper info on the contents of the book, a table of contents maybe? Or a comparison what's in the book and what can be found in the online docs?

Regards,
Rudi

Re: Atom feed for comments, where to configure

Posted: Wed Nov 05, 2008 3:36 pm
by garvinhicking
Hi!

Actually the syndication plugin is just an easy kind of a link list. You could easily just use those links and put them into a normal HTML nugget sidebar plugin, which are untouched when you update s9y (and no need to edit any files). You could then uninstall the syndication plugin, since all of its functionality would then live in your HTML nugget. With those links that you on your own prefer.
So the only realistic option would be to make up a new plugin of its own. But for now I'll stick with the options available and offer RSS 2.0 only. (As son as I enable Atom for the entries, some readers will start asking the same question I did ask: why no comments for Atom)?
There are comment feeds for atom, but a combination of entries PLUS comments is technically not given. Entires and comments are completely separate, and you woulldn't want comments show up as your own blog entries in your reader's feeds?
Is there somewhere some deeper info on the contents of the book, a table of contents maybe? Or a comparison what's in the book and what can be found in the online docs?
Yes, sure - the open source press homepage has a TOC: https://www.opensourcepress.de/index.ph ... oducts=167

In summary, everything about s9y can be found in the book. There is nothing documented online that is not in the book, generally. :)

Best regards,
Garvin