?

Log in

No account? Create an account

Previous Entry | Next Entry

Tag cloud on one's tag page.

  • Sep. 13th, 2006 at 12:06 PM
I like the look of the tag cloud, but I find it too busy for a sidebar, so when someone in s2flexisquares posted a tutorial on how to put a tag cloud on one's tag page (there's also a tutorial on how to put it in the sidebar above that, but we don't need that here obviously), I jumped on it. When I switched to expressive, I missed my tag cloud on my tags page, so I decided to see if I could tweek the flexisquares code for it to fit expressive. I was happy to find it wasn't hard, and thought I'd share in case anyone else would like this too.

To save myself the trouble of having to copy and past massive amounts of code, I'm going to have you start by grabbing the code from over there, and following their directions. You can compile your layer if you want, it won't harm anything, but your subject line won't match anything you already have. What you need to do to make it blend in right and pick up your formatting from your entries is replace everything from "#### Print the tag cloud in an entry-like post ####" down with:

print """
<div class="post-asset asset">
<div class="asset-inner">
<div class="asset-header">
<h2 class="asset-name page-header2">
$subject
</h2></div>
<div class="asset-content">
<div class="asset-body">
$list
<br /></div></div></div></div>
""";

}

I am still rather awkward with digging through layers to find the information I need, so there is a chance that there could be a better way to fix the part I had to change. If anyone sees a better way to do this, please comment and I'll update the entry to include the new information. Thanks to the s2flexisquares community for the original tutorial.

Comments

redwolf
Sep. 14th, 2006 08:45 am (UTC)
Right there with you on the IE workaround crap and poor use of tables. I deal with it all day at work too and could cheerfully throttle the IE developers.

There was an earlier tutorial on yanking the highest ranking tag out of a tag cloud, so it could probably be tweaked to limit the sidebar tag count to a set number. Not that it matters, as I'm happy with my scrolling list instead. I just thought it was a strange oversight to make from the initial developers.

I'm currently trying to port a Component hack for the topbar navigation from Component to Expressive, but there have been enough changes in the code base that it borks on compile. Most annoying, especially when I'm sure it's something basic. Once I get that sorted and previous/next links added to individual posts, I'll be happy.

Latest Month

March 2016
S M T W T F S
  12345
6789101112
13141516171819
20212223242526
2728293031  

S2 Help Communities

Tags

Powered by LiveJournal.com
Designed by chasethestars