Tuesday, April 5, 2011
0
Category/Label wise RSS feeds for your blog with Feedburner
If you had visited Techtree.com than you must have noticed that they use Different feed for different Category such as sony, apple, microsoft ect. If you have various topics to write than It is very much beneficial for the visitor to subscribe to the category he wishes to. To implement this in your blog there is a tutorial given below.
Usually the blog Feed address from a Feedburner Activated account looks like this.
http://www.feeds.feedburner.com/FeedBurnerName
Now, suppose you have a category called "Tips and Tricks" and you want to create a RSS feeds for all the blogs which fall under this category then the feed address would look something like this..
http://www.feeds.feedburner.com/FeedBurnerName/tips and tricks
In Blogger the default address for a particular search label would seem something like as follows:-
http://blogname.blog.com/search/label/label name
In order to create the RSS feeds for these search labels you simply have to do an append operation.
Just replace
” /search/label “
with
“/feeds/posts/default/-/”
With effect, your new RSS address would now seem something like this..
http://blogname.blog.com/feeds/posts/default/-/labelname
Now here is the way how to setup this:
Now Preview Template and than save it. It will look like
Note : There may be a different code but make sure you replace code starting with
and ending with latest
Feel free to ask any question.
Usually the blog Feed address from a Feedburner Activated account looks like this.
http://www.feeds.feedburner.com/FeedBurnerName
Now, suppose you have a category called "Tips and Tricks" and you want to create a RSS feeds for all the blogs which fall under this category then the feed address would look something like this..
http://www.feeds.feedburner.com/FeedBurnerName/tips and tricks
In Blogger the default address for a particular search label would seem something like as follows:-
http://blogname.blog.com/search/label/label name
In order to create the RSS feeds for these search labels you simply have to do an append operation.
Just replace
” /search/label “
with
“/feeds/posts/default/-/”
With effect, your new RSS address would now seem something like this..
http://blogname.blog.com/feeds/posts/default/-/labelname
Now here is the way how to setup this:
- Login to your blogger account and backup your template : How to Backup Full Blogger Template
- Now go to Design->Edit HTML and check .
- Search for the code
<b:widget id='Label3' locked='false' title='Labels' type='Label'> <b:includable id='main'> <b:if cond='data:title'> <h2><data:title/></h2> </b:if> <div expr:class='"widget-content " + data:display + "-label-widget-content"'> <b:if cond='data:display == "list"'> <ul> <b:loop values='data:labels' var='label'> <li> <b:if cond='data:blog.url == data:label.url'> <span expr:dir='data:blog.languageDirection'><data:label.name/></span> <b:else/> <a expr:dir='data:blog.languageDirection' expr:href='data:label.url'><data:label.name/></a> </b:if> <b:if cond='data:showFreqNumbers'> <span dir='ltr'>(<data:label.count/>)</span> </b:if> </li> </b:loop> </ul> <b:else/> <b:loop values='data:labels' var='label'> <span expr:class='"label-size label-size-" + data:label.cssSize'> <b:if cond='data:blog.url == data:label.url'> <span expr:dir='data:blog.languageDirection'><data:label.name/></span> <b:else/> <a expr:dir='data:blog.languageDirection' expr:href='data:label.url'><data:label.name/></a> </b:if> <b:if cond='data:showFreqNumbers'> <span class='label-count' dir='ltr'>(<data:label.count/>)</span> </b:if> </span> </b:loop> </b:if> <b:include name='quickedit'/> </div>
- Now replace the above code by
<b:widget id='Label1' locked='false' title='Labels' type='Label'> <b:includable id='main'> <b:if cond='data:title'> <h2><data:title/></h2> </b:if> <div class='widget-content'> <ul> <b:loop values='data:labels' var='label'> <li> <b:if cond='data:blog.url == data:label.url'> <span expr:dir='data:blog.languageDirection'> <data:label.name/> </span> <b:else/> <a expr:dir='data:blog.languageDirection' expr:href='data:label.url'> <data:label.name/> </a> </b:if> <span dir='ltr'> <a class='labelfeed-link' expr:href='"http://www.bloggertweak.com/feeds/posts/default/-/" + data:label.name' style='margin-left:10px;' title='Subscribe'/></span> </li> </b:loop> </ul> <b:include name='quickedit'/> </div>
Just replace www.bloggertweaks.com with your url. - Now to show feed icon, Copy the code below
a.labelfeed-link { /* IE5.0/Win doesn't apply padding to inline elements, so we hide these two declarations from it */ background/* */:/**/url("http://img341.imageshack.us/img341/5793/smallrssorgangeicongo4.gif") no-repeat 0 .25em;padding-left:15px;} html>body a.labelfeed-link {/* Respecified, for IE5/Mac's benefit */ background:url("http://img341.imageshack.us/img341/5793/smallrssorgangeicongo4.gif") no-repeat 0 .25em;padding-left:15px;}
- and add just above
]]></b:skin>
Now Preview Template and than save it. It will look like
Note : There may be a different code but make sure you replace code starting with
<b:widget id='Label3' locked='false' title='Labels' type='Label'> <b:includable id='main'> <b:if cond='data:title'> <h2><data:title/></h2> </b:if>
and ending with latest
<b:include name='quickedit'/> </div>
Feel free to ask any question.
Subscribe to:
Post Comments (Atom)





0 Responses to “Category/Label wise RSS feeds for your blog with Feedburner”
Post a Comment