The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Typo Feeds

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page


Posts: 201
Nickname: cfis
Registered: Mar, 2006

Charlie Savage
Typo Feeds Posted: Apr 12, 2006 12:29 PM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by .
Original Post: Typo Feeds
Feed Title: cfis
Feed URL: http://cfis.savagexi.com/articles.rss
Feed Description: Charlie's Blog
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by
Latest Posts From cfis

Advertisement

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

Read: Typo Feeds

Topic: Ruby 2.0 Features Previous Topic   Next Topic Topic: Recent Gems and Gem::Specification#description=

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use