Changing The Maximum Number Of Results Displayed In Feeds
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)
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 maximum number of results displayed in feed.
To change the maximum number of results displayed in feed, Variables at the end of the feed URL are used to change the maximim number of results to be displayed. This can be any number from 1-999, and is defined by adding ?max-results=[insert number here] to the end of the feed URL. Here are a few examples:
http://yourblog.blogspot.com/feeds/posts/full?max-results=100
http://www.yourblog.com/feeds/comments/summary?max-results=10
By default, the feeds will return with a start index of 1; that is, they begin with the first newest post or comment. If you want to skip a few results, and start with the third post/comment for example, you can change this by adding ?start-index=3 to the end of the feed url, like this:
http://yourblog.blogspot.com/feeds/posts/default?start-index=3
0 comments:
Post a Comment