Finally!! A tag cloud for my sidebar!

Nov 02, 2006 14:16

I had a bitch of a time working out how to get a tag cloud for my sidebar.



Basically, because S2 customisation (s2howto) only has info on tag lists, not clouds.

The few people offering tag cloud code did it for layouts that weren't flexible squares... and the S2 code documentation isn't very detailed.

Writing it myself was a bit of trial and error.

It was such a pain in the ass in the end that I decided to write out the instructions here in case anyone else wants to do it someday. Hope it helps you. :)

Ooh.. and when you look at other people's entries with the "?style=mine" after the url (which is how I have set mine up) then you get to see THEIR tags in the cloud. Awesome!

I've now submitted my code to howto_userdoc so s2howto might post a tutorial soon. Yay!

Edit: I've just found another person's code here

BTW my solution can't cope with tags that have spaces.. but there are tutorials around on that so it shouldn't be too hard to adapt. Just that I was over it by the time I finished. :)

geek, yay, livejournal, 2006

Previous post Next post
Up