Tag Cloud Steps
Posted: 24 February 2008 09:01 AM   [ Ignore ]
Newbie
Rank
Total Posts:  10
Joined  2008-02-24

I was wondering if anyone could tell me what the step output intervals are.  I would like to control my tag cloud within my stylesheet rather than an inline style.  Show I was thinking about creating classes based on the step.

<a href="#" class="cloud{step}" >tag</a>

I just started designing a new site and I only have 1 entry and 2 tags so I don’t really know how they are going to play out without adding more entries and tags then clicking so I was hoping someone already knew this number.  Thanks

Profile
 
 
Posted: 24 February 2008 01:22 PM   [ Ignore ]   [ # 1 ]
Newbie
Rank
Total Posts:  10
Joined  2008-02-24

nevermind figured it out

Profile
 
 
Posted: 27 February 2008 07:27 PM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  10
Joined  2008-02-24

Actually I didn’t and now I’m more confused than ever.

Here’s my code.

{exp:tag:cloud weblog="{current_blog}" websafe_separator="+" group="5" start="1" step="1" limit="40"}

<a href="{path="art/archives"}tag/{websafe_tag}" title="{tag_name}" class="tag{size}">{tag}... </a>

{/exp:tag:cloud}

Here’s my output

<a href="http://www.eyewalls.com/art/archives/tag/british" title="british" class="tag5">british... </a>
  
  <
a href="http://www.eyewalls.com/art/archives/tag/design" title="design" class="tag5">design... </a>
  
  <
a href="http://www.eyewalls.com/art/archives/tag/graffiti" title="graffiti" class="tag5">graffiti... </a>
  
  <
a href="http://www.eyewalls.com/art/archives/tag/graphic+design" title="graphic design" class="tag5">graphic design... </a>
  
  <
a href="http://www.eyewalls.com/art/archives/tag/real+spit" title="real spit" class="tag5">real spit... </a>
  
  <
a href="http://www.eyewalls.com/art/archives/tag/stencil" title="stencil" class="tag5">stencil... </a>
  
  <
a href="http://www.eyewalls.com/art/archives/tag/street+art" title="street art" class="tag5">street art... </a>
  
  <
a href="http://www.eyewalls.com/art/archives/tag/train+cars" title="train cars" class="tag5">train cars... </a>
  
  <
a href="http://www.eyewalls.com/art/archives/tag/urban" title="urban" class="tag5">urban... </a>

Now what I want it to do, is start at 1 and go up to 5.  As of now they are all 5.  If I replace the size variable with the step variable I get 6 across the board.  Any idea about what I’m doing wrong?

Profile
 
 
Posted: 27 February 2008 07:46 PM   [ Ignore ]   [ # 3 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3717
Joined  2006-10-18

Try the {step} variable wink

See what it outputs smile

 Signature 

Check out the new Solspace Blog!

Profile
 
 
Posted: 27 February 2008 07:56 PM   [ Ignore ]   [ # 4 ]
Newbie
Rank
Total Posts:  10
Joined  2008-02-24

If I replace the size variable with the step variable I get 6 across the board.

In other words tag5 is replaced by tag6.  I don’t even have a clue how I get a 6 with only 5 groups and a step size of 1?  Unless the variable starts at 1 not 0.

Profile
 
 
Posted: 28 February 2008 07:06 AM   [ Ignore ]   [ # 5 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3717
Joined  2006-10-18

Try it with a step size of 2 or 3… perhaps you don’t have enough of ratio of entries?

I’ve managed to get this to work on my own website smile

 Signature 

Check out the new Solspace Blog!

Profile
 
 
Posted: 28 February 2008 10:47 AM   [ Ignore ]   [ # 6 ]
Newbie
Rank
Total Posts:  10
Joined  2008-02-24

I’ve tried 2 and 3, I get the same number across the board.  I have 3 entries with multiple tags.  I’ve clicked on one tag many more times than all the other tags, nothing, no change.  Where are the tag clicks stored, maybe this is write protected?  I just keep getting number that just don’t ad up either.  I had a start of 1 step 2 and I get tag11.  By my math even if all of them are considered to be the most popular tags they should be 5X2=10 so tag10.  But nothing seems to change the groups.

Profile
 
 
Posted: 28 February 2008 11:54 AM   [ Ignore ]   [ # 7 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3717
Joined  2006-10-18

nek4life,

The step weighting process is determined by Number of Entries per Tag

If you only have 3 entries, and they each have different Tags, they’re all going to be weighted the same. It only builds the weighting by ratio to others, so for example, even if you have 12 entries, and 4 were assigned tag1, 4 were assigned tag2, and 4 were assigned tag3, they all hold the same ratio, and will output the same Step.

The number of times the top tag is used establishes the top of the scale with 0 as the bottom. You specify the number of groups into which your tags will be sorted. Each of your top tags will be evaluated as to which group they belong in. They will be given a numerical ranking based on this.

For example, imagine you have 3 tags on your site; apple, orange and microsoft. You specify that you want to show a cloud with 3 groups. If apple is used 12 times, orange 7 and microsoft 1, the top of your scale will be 12. Apple will get the highest rank and the largest font. Microsoft will get the smallest ranking and font. Orange will get the middle font because it falls into the middle grouping. The range for falling into the lowest group would be 0-4. For the middle, 5-8. And for the top, 9-12.

Tag Cloud Documentation

 Signature 

Check out the new Solspace Blog!

Profile
 
 
Posted: 28 February 2008 12:07 PM   [ Ignore ]   [ # 8 ]
Newbie
Rank
Total Posts:  10
Joined  2008-02-24

AHHHH, so there’s not a database for the most viewed tags.  That’s more of what I’m after.  I don’t have any user generated tags so there’s no popularity that way.  I want to tag articles and have the tags grow based on the number of tag views rather than how many tags for each article.  If that’s not a feature I’d like to request it.

Profile
 
 
Posted: 28 February 2008 12:17 PM   [ Ignore ]   [ # 9 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3717
Joined  2006-10-18

Unfortunately not my friend. I’ll note this smile

 Signature 

Check out the new Solspace Blog!

Profile
 
 
Posted: 28 February 2008 12:24 PM   [ Ignore ]   [ # 10 ]
Newbie
Rank
Total Posts:  10
Joined  2008-02-24

Thanks for all the help Pie Man!

Profile
 
 
Posted: 17 October 2008 07:10 AM   [ Ignore ]   [ # 11 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3717
Joined  2006-10-18

The ranking of Tags by most viewed (rank_by=“clicks”) is now available with the new version of Tag 2.5 smile
http://www.solspace.com/forums/viewthread/661/

 Signature 

Check out the new Solspace Blog!

Profile