The road less taken

« Changing the theme... | Main | Debugging publish/su... »
Tuesday May 29, 2007

Adding a tag cloud to your blog template

If you're a frequent blogger and would like to create a tag cloud of the popular tags of the blogs you create, you can edit your template and add this piece of code to your side bar (for Roller). This is what I did today and you can see the tag cloud in the side bar.

Learn something new today!


#set($mytags = $model.weblog.getPopularTags(-1, 100))
#foreach ($tag in $mytags)
  #if ($tag.count > 2)
   $tag.name
  #end
#end
 

Comments:

I was wondering how to do this. I did try, and it didn't seem to take. Any suggestions? I'm HTML illiterate... Thanks! Barb

Posted by Barb M on May 29, 2007 at 07:19 PM PDT #

Manveen, here's a slightly more advanced tag cloud: http://blogs.sun.com/sharps/tags/hacking

Posted by Rich Sharples on May 29, 2007 at 09:09 PM PDT #

Thanks for the cool pointer Rich!

Posted by Manveen on May 30, 2007 at 02:16 PM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed