s9y nightly build: no with categories, tags in ATOM feeds

Found a bug? Tell us!!
Post Reply
bpkri
Regular
Posts: 41
Joined: Tue Aug 09, 2005 2:31 pm

s9y nightly build: no with categories, tags in ATOM feeds

Post by bpkri »

Hello,

I noticed some strange things with the nightly build, when checking technorati for listings from my blog.
The nightly builds contain ATOM 1.0 feeds, which is originally why I changed, but they also still support ATOM 0.3.
However it seems the categories won't be correctly used in the ATOM 0.3 feed. I don't see any categories, neither from assigned categories to my posts, nor from the freetag plugin.

In the Atom 1.0 feed at least the assigned categories are present, the tags from teh freetag plugin however also are not visible in the feed.

Only in the RSS 2.0 feed categories get correctly included.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: s9y nightly build: no with categories, tags in ATOM feed

Post by garvinhicking »

Atom 0.3 doesn't support categories, at least not in the Spec. Atom 1.0 does, yes.

The freetag plugin uses RSS 2.0 because when it was done, Atom 1.0 was not yet available. I am sure someone will patch it for Atom 1.0 support. If you know how to integrate it and what tags it needs I can patch it, of course?

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

Re: s9y nightly build: no with categories, tags in ATOM feed

Post by garvinhicking »

I found that the plugin was already "ready" for it to inject dc:subject tags for the feed. I just enabled it in version 2.20 of the plugin and in a patch for SVN trunk.

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/
bpkri
Regular
Posts: 41
Joined: Tue Aug 09, 2005 2:31 pm

Post by bpkri »

Ah, thanks a lot :)

Still doesn't work....

Hmmm...after examining the sourcecode a bit closer I discovered, that when generating the feed, the hook called in the freetag plugin is not present hence the dc:subject tags never get inserted.
For now I inserted the hook into the functions include file. However only for them atom 0.3 feed and only for freetag. I'd need to search to find out where the tags for categories get generated, as it should happen just the same with categories (which for now also don't become subject tags in the atom 0.3 feed)

edit:
okay: I added dc:subject for categories now too, only for the ATOM 0.3 feed for better Technorati integration. Phew. Work done, this should do the trick :)
Looks ugly, but works. (and I still don't really understand PHP, but so what. Learned a few programming languages so far, the basics are mostly the same.)
Post Reply