?

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

papillion_2_uk
May. 8th, 2007 12:28 pm (UTC)
I'm attempting to put a cloud on my tags page, but I seem to have gone wrong somewhere. As far as I can see I've followed the instructions correctly, but my tag page is staying exactly the same as it was before.

I've never used custom layers before, so I've absolutely no idea what I've done wrong, or how to fix it. I think I've made the layer visible: http://www.livejournal.com/customize/advanced/layerbrowse.bml?id=8545440

I'd be really grateful if someone could help me get this working.
stickykeys633
May. 8th, 2007 10:09 pm (UTC)
I'm going to be trying this out today. If it works for me I'll do my best to assist you! I'm really just leaving this so I can mark it.
stickykeys633
May. 8th, 2007 10:56 pm (UTC)
I did it and it worked gangbusters.

Now I noticed that you created a theme layer, but do you already have a different theme layer you are using? I assume so because your current theme isn't one of the Expressive ones I don't think.

Anyhow, what you will need to do is just incorporate the code into the current theme layer you are already using.

Let me know if this makes sense, I'll be on tonight.

diziara
May. 8th, 2007 10:57 pm (UTC)
Okay, looking at your layer, I think I see your problem. I see you're using the Butterflies Purple theme, but you don't have that theme's information listed in your custom layer for your tags page, so it looks like you've still got the standard theme layer selected (or you're using a separate custom theme layer). If you just have the system theme layer selected, you'll need to put the theme information (found here: layer 7379786) into your custom theme layer. Just copy and paste everything but the first two lines, and paste it after the third line: "layerinfo "source_viewable" = 1;".

Once you do that, you need to go back into to Customize Journal: Look and Feel, then select your "Tag Page Cloud" custom layer down at the bottom of the themes drop down list.

If you're already using a custom theme layer, then you'll need to take the code from your "Tag Page Cloud" theme layer (everything but the first three lines), and paste it into whichever custom theme layer you're already using. Looking at your journal, I didn't see anything to indicate you already had a custom theme layer in use, so I think you'll be following my first suggestion.

Let me know if you have any questions, or anything else I can help with. Good luck. :)

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