Download & Extend

Remove $node-tags feature and stick to strictky needed features to show clouds.

Project:Tagadelic
Version:master
Component:Code
Category:task
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

In the function tagadelic_node_get_terms, there is a line which has nothing to do but generates no result when the taxonomy option "free-taging" (also called "tags") is selected. This option is in the variable $vocs[$term->vid]->tags below. When this option is activated, the free-taging is disabled ; but it has nothing to do with the tagadelic module which must display the terms.

Original code - tagadelic.module

function tagadelic_node_get_terms($node) {
  if ($terms = taxonomy_node_get_terms($node, 'tid')) {
    $tags = array();
    $vocs = taxonomy_get_vocabularies($node->type);
    foreach ($terms as $tid => $term) {
      if ($vocs[$term->vid]->tags) {
        $tags[$term->vid][$tid] = $term;
      }
    }
    return $tags;
  }
}

My correction

function tagadelic_node_get_terms($node) {
  if ($terms = taxonomy_node_get_terms($node, 'tid')) {
    $tags = array();
    $vocs = taxonomy_get_vocabularies($node->type);
    foreach ($terms as $tid => $term) {
       $tags[$term->vid][$tid] = $term;
    }
    return $tags;
  }
}

Comments

#1

Title:Taxonomy "tag setting"» Remove $node-tags feature and stick to strictky needed features to show clouds.
Version:6.x-1.0» master

#2

Category:bug report» task

#3

Status:active» fixed

Committed to HEAD and D7 branch: http://github.com/berkes/tagadelic/commit/493601e3d0a918f2c2ffbab8f3b60d...

THX.

#4

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here