This module with a "Tags for the current post" block will only display "tags", e.g. comma separated values, not those tags selected from a multiselect.
function tagadelic_tags_lists($node) {
if (is_array($node->tags)) {
Here we look for tags, but $node->tags doesn't seem to be set for a free tagging taxonomy. Why is it empty?
/**
* API that returns a multidimensional array with tags given a node
* @param $node. A node object.
*/
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;
}
}
The author has chosen to ignore any vocabs that are not explicitly tags. By taking out those lines (comments above) everything starts working.
I feel like this should be an optional constraint, or at least documented.
Comments
Comment #1
aidanlis commentedComment #2
tpfeiffer commentedWhy is this "closed (fixed)"? Is there an option to toggle this behavior by now? In my setup (6.x-1.3), it doesn't look so.
Comment #3
aze2010 commentedsubscribing