Typo Feeds

Posted by Charlie Wed, 12 Apr 2006 17:50:00 GMT

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

Posted in  | 5 comments | 2 trackbacks

Comments

  1. Avatar berkus said 18 days later:

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

  2. Avatar Charlie said 18 days later:

    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. Avatar berkus said 18 days later:

    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. Avatar berkus said 18 days later:

    Now that works correctly ^__^

    Thanks for being (unsuspectedly) my trackback victim :)

  5. Avatar Charlie said 19 days later:

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

Trackbacks

Use the following link to trackback from your own site:
http://cfis.savagexi.com/trackbacks?article_id=typo-feeds&day=12&month=04&year=2006

  1. From Nodal Point
    And one more thing
    I
  2. From Nodal Point
    Typo trackbacks
    Seems that typo svn doesn

Comments are disabled