Closed (fixed)
Project:
Tagadelic
Version:
5.x-1.0
Component:
Code
Priority:
Minor
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
16 May 2008 at 13:09 UTC
Updated:
1 Jun 2008 at 16:42 UTC
I have a tagcloud in my page template (so I get the cloud on every page) but I want to limit the amount of tags in that cloud. In my tagadelic settings I set the number of tags to 5 per cloud and the php snippet I use in the template is
$tagcloud = "";
drupal_set_html_head('
');
$vocs[]= 4; // ids of vocabs for which you want to build a tag cloud
$tagcloud = theme('tagadelic_weighted',tagadelic_sort_tags(tagadelic_get_weighted_tags($vocs)));
print $tagcloud;
Still all the tags in the vocabulary show up in my cloud...
site is reloadingimages.wsnw.net/drupal/
Thanks,
wouter
Comments
Comment #1
ckreutz commentedThe limitation on the site configuration is only meant to be for the tag overview: e.g. tagadelic/list/1
If you want to limit your tags in a block just add the following figures next to $vocs separated by commas:
$tagcloud = theme('tagadelic_weighted',tagadelic_sort_tags(tagadelic_get_weighted_tags($vocs,6,20)));
The 6 stands for the level and 20 would show 20 tags.
I guess that is solved. :-)
Comment #2
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.