EllisLab text mark
Advanced Search
     
Solspace Tag: Cloud variables
Posted: 15 April 2007 12:18 PM   [ Ignore ]
Avatar
Joined: 2005-10-20
140 posts

Hello, I’ve just installed the Tag Module and I a bit confused with the tags cloud.

1. I’d like to show how many entries are using each tag. I mean an XHTML like this:

<a href="/tag/tagname" title="35 entries">tag</a

I though I could use the {count} variable, though it is not working to me, it renders 1 for all my tags and that’s not true.

2. What is eactly group parameter function? The Solspace documentation is not very descriptive.

3. I can control the font size with the start+step variables. I’ve seen other blogging tools use also color intensity to show the ranking tag. They are much darker as much popular. Does anybody has a code to calculate the color intensity depending on the popularity rate?

Thank you very much.

 
Posted: 15 April 2007 05:12 PM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Avatar
Joined: 2003-01-30
108 posts

Dolmance,

We’re working on a new version of the Tag module and will double check the count variable of the tag cloud function.

The groups parameter helps the cloud function establish how to rank the individual tags that show in the cloud. The cloud is composed of the highest ranking tags up to the limit you provide. Within that batch, the groups parameter establishes into how many ranking groups to separate the resulting set of tags. This allows you to control how much variation in size or color or whatever your visual method is between each tag. Personally, I don’t want a cloud where every tag can be of a different size from every other. I like to make it a bit more homogenized. I want the high ranking tags to really pop out and the remaining tags to sort of group themselves into sizes. If you want t truly granular tag, where every tag shows its rank by size or color, the set the limit and groups parameters to be the same number.

You’ll want to achieve the color effect by setting up separate CSS styles for each of the colors that can be shown. You’ll append to these style names an integer. So you might have a css style for tags of size 10 like a.tagcolor10 {color: dark-blue;} and in your code you might have <a href=“blah” class=“tagcolor{step}”>

mk

 
Posted: 17 April 2007 03:36 AM   [ Ignore ]   [ # 2 ]   [ Rating: 0 ]
Avatar
Joined: 2005-10-20
140 posts

It has been very useful your explanation. Thank you.

 
Posted: 17 April 2007 04:11 AM   [ Ignore ]   [ # 3 ]   [ Rating: 0 ]
Avatar
Joined: 2005-10-20
140 posts

Hello again, the color styles tip has been very useful.

One question more. I’m doing the multiple entries tag template and I don’t know how to get the global tag title. For example:

http://www.yourdomain.com/tag/computers/

That template would show all the entries using the tag “computers”, but how to write on the html title the tag name “Computer”? I mean:

<title>Computers - Yourdomain.com</title>

Thank you.

 
Posted: 17 April 2007 10:30 AM   [ Ignore ]   [ # 4 ]   [ Rating: 0 ]
Avatar
Joined: 2004-05-14
20504 posts

Use {segment_2}? That’s what I do. =)

 
Posted: 17 April 2007 01:11 PM   [ Ignore ]   [ # 5 ]   [ Rating: 0 ]
Avatar
Joined: 2005-10-20
140 posts

Cool Lisa, that’s OK. I thought there was a tag module variable for that. Thanks

 
Posted: 17 April 2007 01:26 PM   [ Ignore ]   [ # 6 ]   [ Rating: 0 ]
Avatar
Joined: 2004-05-14
20504 posts

Segment_2 is right there, why add stuff that needs parsing? =)

 
Posted: 14 September 2007 11:22 AM   [ Ignore ]   [ # 7 ]   [ Rating: 0 ]
Avatar
Joined: 2005-11-08
83 posts
Lisa Wess - 17 April 2007 05:26 PM

Segment_2 is right there, why add stuff that needs parsing? =)

Hello Lisa,

I’m sorry to post a new post in this thread, but could you explain me a little more how you can do that ?

Thanks in advance,

 Signature 

Simon

My website

 
Posted: 14 September 2007 02:15 PM   [ Ignore ]   [ # 8 ]   [ Rating: 0 ]
Avatar
Joined: 2004-05-14
20504 posts

How I can do what, Simon? This thread is a bit old. I’d also recommend posting your Tag question at solspace.com’s forums now =)