How do I use this module
macco - August 11, 2007 - 08:23
| Project: | CCK Taxonomy Fields |
| Version: | 5.x-1.1 |
| Component: | Documentation |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Hello,
I am not sure how to use this module.
I have created a content type with a cck_taxonomy field. The field shows the termId correctly, but
the node does not get related to the term.
What I am missing?
Regards,
Macco

#1
This module doesn't use the normal term_node table of taxonomy. It rather transposes the data storage into CCK fields so the association is done in the cck tables. My goal for this module was to use the taxonomy hierarchy building tools as a way for building lists and hierarchies for use as CCK fields. Most of the possibilities for making listings that you are looking for can be replicated with Views module, cck_taxonomy will not work with other contrib modules that are designed to leverage taxonomy. The good news is, you can use taxonomy as normal when cck_taxonomy is in use, so the two systems can live along side each other. Let me know if you've got other questions.
#2
If it helps, here's an example of how I am using CCK Taxonomy to pull a list of related terms from a vocabulary. I have a CCK Taxonomy Field called field_of_interest.
<?php
$i = 0;
$limit = count($field_field_of_interest);
while ($i <= ($limit-1)) {
$tags[] = l($field_field_of_interest[$i]['view'], 'taxonomy/term/'. $field_field_of_interest[$i]['tid']);
$i++;
}
if ($field_field_of_interest){
print t("Fields of Interest") . ": " . implode(' | ', $tags);
}
?>