We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Solspace Tag: Cloud variables

Development and Programming

dolmance's avatar
dolmance
101 posts
18 years ago
dolmance's avatar dolmance

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.

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

  2. 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.

       
Solspace's avatar
Solspace
106 posts
18 years ago
Solspace's avatar Solspace

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

       
dolmance's avatar
dolmance
101 posts
18 years ago
dolmance's avatar dolmance

It has been very useful your explanation. Thank you.

       
dolmance's avatar
dolmance
101 posts
18 years ago
dolmance's avatar dolmance

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:

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.

       
Lisa Wess's avatar
Lisa Wess
20,502 posts
18 years ago
Lisa Wess's avatar Lisa Wess

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

       
dolmance's avatar
dolmance
101 posts
18 years ago
dolmance's avatar dolmance

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

       
Lisa Wess's avatar
Lisa Wess
20,502 posts
18 years ago
Lisa Wess's avatar Lisa Wess

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

       
Simon-a's avatar
Simon-a
64 posts
17 years ago
Simon-a's avatar Simon-a
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,

       
Lisa Wess's avatar
Lisa Wess
20,502 posts
17 years ago
Lisa Wess's avatar Lisa Wess

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 =)

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.