Atom Feed for comments

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
rwiener
Regular
Posts: 5
Joined: Mon Nov 03, 2008 5:33 pm
Location: Austria
Contact:

Atom Feed for comments

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Atom Feed for comments

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
rwiener
Regular
Posts: 5
Joined: Mon Nov 03, 2008 5:33 pm
Location: Austria
Contact:

Atom feed for comments, where to configure

Post 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?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Atom feed for comments, where to configure

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
rwiener
Regular
Posts: 5
Joined: Mon Nov 03, 2008 5:33 pm
Location: Austria
Contact:

Re: Atom feed for comments, where to configure

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Atom feed for comments, where to configure

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply