The tagadelic module generates a page with weighted tags, indicating how many times a category or tag has been used to categorize content on the site. The cool thing is that by merely altering font sizes, these lists suddenly gain a dimension: the more often a tag is used, the larger its font size. Tagadelic offers various ways to add terms and vocabularies in one tag cloud. By using the urls, you can create your own clouds pages. It also offers a sideblock for each taxonomy tree. Tagadelic offers dynamic URLs.

This module will work with any vocabulary, be it marked for free tagging or not. If you are not happy with the tags from non-free tagging vocabularies showing up, then use the URL tricks below.

You can:

  1. visit tagadelic/list/2,1,5 to get the vocabularies 2,1 and 5 listed as tag groups.
  2. visit tagadelic/chunk/2,1,5 to get a tag cloud of the tags in the vocabularies 2,1 and 5.
  3. file issues, read about known bugs, and download the latest version on the Tagadelic project page.

See also: http://drupal.org/node/374327 (Based on Drupal 6 version)

Comments

adc’s picture

Tag cloud with Drupal Tagadelic module - micropost.
12 December, 2007 - 09:10 — HornCologne from copied from http://horncologne.com/content/tag_cloud_drupal_tagadelic_module_-_micro...

So I wanted one of those nice "tag clouds" of key words from my site. No problem! Drupal has the Tagadelic module. Once downloaded and unzipped to my /sites/all/modules folder, module activated, I was ready to go! ... Right? Well, no. This thing is so simple, no one seems to have documented the on switch ... I found a lot of code samples for various interesting implementations. I found its settings in my Drupal installation, but no how-to.

To save you the hours of futzing around I just went through here it is: go to YOURSITE/admin/build/block, scroll down and find the block inexplicably called "tags in Tags" (you can rename it in the "configure" options, I did), activate this where you'd like to have it. Done. Whew. We have tag cloud.

mailme.eva’s picture

"tags in tags"? mine was "tags in keywords"

eoneillPPH’s picture

"tags in tags" means you'll see all the tags in the vocabulary "tags". (just in case that wasn't apparent to anybody... it had me a bit confused at first.)

amarcionek’s picture

Just to add, after you upload to /sites/all/modules folder, make sure to go to admin/build/modules and "Enable" the module. I know adc said "activated" but I spent 20 minutes figuring out what that meant.

dmnd’s picture

I was quite confused by this page. So to clarify:
1) there is a module called tagadelic. It can make a tag cloud without any other contributed modules.
2) After you enable tagadelic, go to admin-settings.
pick sort by title, ascending
3) leave number of tags and number of levels at their default settings
4) surf to www.example.com/tagcloud (put your domain name instead of example.com). You will see the tagcloud there.
5) If the sizes are not correct (categories with more posts will have a larger font), check to make sure the css file is properly loaded.
6) If you see nothing at the tagcloud, make sure you have some posts that have some taxonomy (it does not have to be free tag)

brunoslessa’s picture

For me, right now, the www.example.com/tagcloud doesn't work. But www.example.com/tagadelic works.

Bruno Lessa

strellman’s picture

Yes, the tagcloud only works if you use this URL format as a menu item tagadelic/chunk/1,2,3
Your domain is assumed for internal links. Not sure how to get this into a block.

dps
http://2tell.org/boring

ojfam’s picture

Any ideas on how to get the chunk display as a block. By default it does this on a by vocabulary-basis. I would like to see everything combined into a single display.

Miria’s picture

I would like to figure out how to do this too!

harouni’s picture

This question was answered in the first comment:
http://drupal.org/handbook/modules/Tagadelic#comment-893778

Look out for the "Tag in Tags" block under the Admin>Site>Blocks on your navigation.
I was happy to find the answer, cause it would have been a hair pulling evening for me too if I didn't :)

Good luck developing guys.

glamshyam’s picture

i downloaded he tagadelic module.. and enabled it... what to do next......... please help
i am a newbie

brunoslessa’s picture

Hi,

In drupal 6 you will configure the module in the address www.example.com/admin/settings/tagadelic

To se the tag cloud, go to www.example.com/tagadelic or www.example.com/tagadelic/chunk/1

Need more help?

Bruno

philingle’s picture

i jsut get "The requested page could not be found. " when i do that

what i dont get is where do i input the tags, it doesnt say anywhere how i add tags to my content

brunoslessa’s picture

The tagadelic module will build the cloud tag using the taxonomies that you configured in your drupal. To configure a taxonomy (or category), you will need to go to admin/content/taxonomy.

To see a cloud tag with all taxonomies you created, go to www.exemplo.com/?q=tagadelic (or www.exemplo.com/tagadelic).

To see a cloud with the tags of just a taxonomy, you will need, at first, to discover the ID of the taxonomy. One way is in admin/content/taxonomy just put the mouse over the links at right of the taxonomy name, what number appear at end of the url? you will use this number here, at the end: www.example.com/?q=tagadelic/chunk/<>

With this url, you just need to create a new link in the menu.

Bruno Lessa
www.prece.org

dankoB’s picture

This does not answer the question. I have no problem getting tags in vocabularies to show up as clouds in blocks. The problem is that there is one for each vocabulary. Is there a way to combine all the tags from several vocabularies into one cloud? Or do I need to go back and only have one vocabulary?

Nitebreed’s picture

Here's how to do this (with 6.x)

<?php
if (module_exists("tagadelic")) {
  $output = "";
  $tag_levels = 3; //max 10
  $tag_count = 20; //unlimited, but think about the size of the rendered block......
  $vocs = array();
  $voc_ids = array(1, 2, 3); //include tags from vocabularies: 1, 2 and 3. Replace this list to your needs.
  foreach ($voc_ids as $voc_id) {
    if ($voc = taxonomy_vocabulary_load($voc_id)) {
      $vocs[] = $voc->vid;
    }
  }
  if (!empty($vocs)) {
    $tags = tagadelic_get_weighted_tags($vocs, $tag_levels, $tag_count);
    $tags = tagadelic_sort_tags($tags);
    $output = theme('tagadelic_weighted',$tags);
  }
  print $output;   
}
?>
mattjbondi’s picture

... that contains terms from multiple vocabs in D7 can be done by just using this code in a .tpl.php or even in hook_menu()
print tagadelic_page_chunk(array(1,2,3));

scott.whittaker’s picture

Is it possible to generate tag clouds for a subset of the content? For example the current tag cloud is generated for all the content on the site. What I would like to do is view a category and get a tag cloud of the tags associated with the content under that category. Or a tag cloud based on the terms attached to the items returned from a search. That way the tag cloud will change based on what you are looking at and you will get a cloud that is relevant to the content.

kacash’s picture

scott.whittaker, I just ran into the same question today, and wrote a little code for it. I think perhaps it would have been easier to do this with the Views Cloud module, but in case this is helpful to anyone, here goes:

New code in template.php:

function tags_per_term($tid) {
  $vocs[] = 5; // tags vocabulary
  $number_of_tags = variable_get('tagadelic_page_amount', '12');
  $steps = variable_get('tagadelic_levels', 6);
  $terms = taxonomy_get_children($tid, $vid = 0, $key = 'tid');
  $terms = array_keys($terms);
  $terms[] = $tid; 
  $sql = 'SELECT COUNT( * ) AS count, t.tid, t.name, t.vid
    FROM {term_data} t
    INNER JOIN {term_node} n1 ON t.tid = n1.tid AND t.vid = 5
    INNER JOIN {term_node} n2 ON n1.nid = n2.nid 
	WHERE n2.tid IN('.$terms = implode(',',$terms).')
    GROUP BY t.tid, t.name, t.vid
    ORDER BY count DESC';
  $result = db_query_range($sql, 0, $number_of_tags);
  $tags = tagadelic_build_weighted_tags($result, $steps);
  return theme('tagadelic_weighted', tagadelic_sort_tags($tags));
  #return $sql;
}

This function is then called up via a new block:

<?php
drupal_set_html_head('<style type="text/css">@import url('.drupal_get_path('module','tagadelic').'/tagadelic.css);</style>');
print tags_per_term(arg(2));
?>

I set the block to only appear on the categories I'm interested in (e.g. taxonomy/term/*), so arg(2) is always the category's ID number and things work swimmingly. Also in my case my tags are in vocabulary 5, so you'll probably need to change that.

scalp’s picture

rarezoo,
This is exactly what I need, but I can't get it working. I know this thread is old and for Drupal 4.x, but I was hoping that because your post was more recent maybe it was for 6.x. I'm trying to show siblings of the current term being viewed so my block looks like this:

<?php
drupal_set_html_head('<style type="text/css">@import url('.drupal_get_path('module','tagadelic').'/tagadelic.css);</style>');
if ((strcmp(arg(0), 'taxonomy') == 0) && (strcmp(arg(1), 'term') == 0) && is_numeric(arg(2))) {
$parents = taxonomy_get_parents(arg(2), $key = 'tid');
foreach ($parents as $parent) {
$tid = $parent->tid;
print tags_per_term($tid);
}
}
?>

I can print $tid and it's correct so I think I'm okay there. I've tried placing the tags_per_term function in both my template.php file and inside the tagadelic module with no luck. I'm sure there are other ways to do this, but I'd love to run it through the tagadelic module because I already have that modified to run some extra queries that I want run on the block above.

catdevrandom’s picture

Hello,

(about the "Page not found" when visiting www.example.com/tagadelic link.)

I was having the same issue. You might have to just run cron (visit www.example.com/cron.php; it will show a blank page, but it doesn't matter). Then try the www.example.com/tagadelic link again.

-c

SebScoFr’s picture

Hello all,

I installed the tagadelic module today and I'm experiencing the "Page not found" issue since then.

I've created my tags within the taxonomy section AND I tried to run cron as catdevrandom suggested but still the page can not be found when I go to www.example.com/tagadelic (I've activated clean urls)

Could that be related to the tagadelic version used?

Hopefuly some of you might have encountered this situation in the past and help me fix it cause it's getting me nuts :s

Btw, I'm running drupal on a local machine (windows) using Apache.

EDIT: Ok the only problem was there were no tag... I thought tags would be automatically recognized when creating content but with my configuration I've got to manually tag the content. Shame on me =)

priti_p’s picture

Hey there..
I had same question..
but how did you tag?
I mean what did you do exactly??
I am really stucked here!!!

elmuchacho’s picture

runs ...
but new tags entered in the taxonomy vocabulary are only shown when i change the amount of tags in the config of the block ...
if i change it f.e. from 50 to 30, ALL tags are shown ...
if a add a new tag in the vocabulary, this new tag is shown only after changing the amount of tags in the block's config once more ...

this is strange ...

any way to show new tags by adding them ?

Denny’s picture

As VM pointed out use clear cache in admin/settings/performance.

hiephm’s picture

I think it's un-reality to clear cache after user add free tags.
Only the admin has the authority to clear cache and, of course you don't want to clear cache that so often.

BTW, there's a patch to fix this problem: http://drupal.org/node/1069294
It ran OK when I applied it. Hope it's incoporated in the new release soon.

sudha.r’s picture

@adc, hello , Thank you very much for yor post regardsing teh tagedelic module, your post helped me out a lot, Gave me a chance to take the fist step successfully.

Now, my tag cloud is visible on my website, but..its not in the form of a cloud, i mean all very straing horizontally and deciplined tags, I want them .. moving inside the block., and alos not only the terms i've entered in the taxonomy but also the popular searches in my website should be seen in the tag cloud, how is that possible??

Thank you very much once again.
Regards,
Sudha.

kalarav_clarion’s picture

Hello,

I have a problem displaying tag clouds in a block. I am using tagadelic module to display the tag cloud. The block is not displaying. The tag cloud page at http://www.mysite.com/tagadelic is displaying a weighted tag cloud. But the tag cloud in the block is not displaying anything.

I have assigned block to be displayed in right section. I want to display tags for content type blog. For my blog website.

Does anybody know how to fix the weighted tag cloud block ?

Thanks

Vako’s picture

I am having the same problem as these ones happening from years ago.
1. the block doesn't show
2. nothing is displayed
3. the link .../tagadelic/list/5,6,7 gives Page not found

schmickledilly’s picture

I know a little about Drupal overall, but I'm not a Drupal expert, so forgive the newbish question..

I can't seem to figure out how to change the chunk/1 url to something more seo friendly, like /tags for the main tag cloud page. Can anyone help me with that?

Thanks in advance. meh

Vako’s picture

I have read every single comment on this page and noticed that this module didn't work in 99% of the posts.
So, my question is: is this a fake module? does it only work for some and not others?
For people who it does work for, please explain to us the process to make it work.

  • I have tried all the suggestions and still am getting "Page not found" error when I go to /tagadelic or /tagadelic/chunk/1...
  • The block is configured but doesn't show up.
  • link .../tagadelic/list/5,6,7 gives Page not found
  • Taxonomy is configured with terms.
  • Module activated and configured
  • Caches cleared
  • Cron was run

What is missing?

lahode’s picture

I believe you're right Vaco, this module seems "fake", have a look in tagadelic.module and laugh, there is no code...

The previous tagadelic module has been replace by tag cloud module : http://drupal.org/project/tagclouds

Cheers

Fredrik Lahode
Développeur et Formateur web indépendant

Vako’s picture

The tagadelic.module file for me is not blank and the size is 16kb.
Maybe the download file is corrupted for some?

Tag Cloud is only for D7, I'm still on D6.