Typo Feeds

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

  • 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:

  1. May 1, 2006

    sorry, trying to leave trackback to your site but can’t figure how to do it with Typo…

  2. Charlie Savage –
    May 1, 2006

    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.

  3. May 1, 2006

    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 ^__^

  4. May 1, 2006

    Now that works correctly ^__^

    Thanks for being (unsuspectedly) my trackback victim 🙂

  5. Charlie Savage –
    May 2, 2006

    Hi Berkus – Great work on your patch. Hope you get those test written so it can get merged into typo head!