Typo Feeds
Posted by Charlie
One of the nice new featues in the HEAD version of Typo is per-category feeds. However, it wasn't quite obvious to me how to access them. A quick look at xml_controller.rb and routes.rb cleared things up.
From routes.rb we can see that you can specify a :type and :id when requesting a feed.
map.xml 'xml/:format/feed.xml', :controller => 'xml',
:action => 'feed', :type => 'feed'
map.xml 'xml/:format/:type/feed.xml', :controller => 'xml',
:action => 'feed'
map.xml 'xml/:format/:type/:id/feed.xml', :controller => 'xml',
:action => 'feed'
Digging through xml_controller.rb we can then see that the allowed types are:
- comments
- trackbacks
- article
- category
- tag
So to see an atom feed of all the articles you've written categorized under Ruby you'd use this url:
mysite/xml/atom10/category/ruby/feed.xml

sorry, trying to leave trackback to your site but can’t figure how to do it with Typo…
Hi Berkus, no problem and its seems to have worked fine. I know the typo devs are working on making trackbacks even better, looking forward to the next release.
It actually didn’t work as I expected and it left some strange url in the trackback. I’m digging typo internals in search of how to trackback properly and it seems I need to add some form field before I can do it - we shall see soon ^__^
Now that works correctly ^__^
Thanks for being (unsuspectedly) my trackback victim :)
Hi Berkus - Great work on your patch. Hope you get those test written so it can get merged into typo head!