Wednesday, April 21, 2010

Changing The Feed Format Of Your Blog (Blogger Tutorials)

Wednesday, April 21, 2010

Changing The Feed Format Of Your Blog

In my previous articles i have written about how you can find your Blog's Feeds.
Now i will show you how you can customize it to suit your needs.

You can change the settings of your blog feed, be it for the posts or comments feed, by changing elements of the URL and adding variables to it. The variables you can change are:

  • The feed type (Atom/RSS)
  • The maximum number of results (posts or comments) that are displayed.
  • The amount of text displayed (summary or full)
So let's look at the feed URL in another way:


http://yourblog.blogspot.com/feeds/[posts/comments]/TYPE/[variables defined here]

The feed type (Atom/RSS) and the maximum number of results are defined using variables which are added to the end of the URL. The amount of text displayed is controlled by the TYPE section within the default url.
In this post i will show you how you can change the format of your blog feed.

To change the feed from Atom to RSS format, you need to add this variable to the end of the feed url:


?alt=rss

The question mark tells the browser that variables will be added to the feed url, while the "alt" function defines the alternative feed format (in this case, the alternative is RSS). Here are examples of how this can be used:


http://yourblog.blogspot.com/feeds/comments/default?alt=rss
http://www.yourblog.com/feeds/posts/summary?alt=rss


0 comments:

Post a Comment