Page 1 of 1

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

Posted: Sun Aug 21, 2005 3:36 am
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.

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

Posted: Sun Aug 21, 2005 4:33 am
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

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

Posted: Sun Aug 21, 2005 4:39 am
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

Posted: Wed Aug 24, 2005 4:30 pm
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.)