slightly unorthodox, but very painless solution
robotoverlord - September 16, 2008 - 00:01
| Project: | CCK Taxonomy Super Select Ultra |
| Version: | 5.x-1.1 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
Is there any way to get at the descriptions for the terms when theming nodes? Something like term['desc']?
I'm replacing all of my taxonomy text with icons but I need some text to stick in the alt= tag.
Thanks,
R

#1
I was waaay overthinking this. Since the actual term itself doesn't make an appearance anywhere else, I just shortened my term descriptions and put them in place of the term names. That way I get nice rollovers. Here's my code that I ended up with:
<ul><?php foreach ((array)$node->field_features as $feature) {
print '<a href="#" title="' . $feature['view'] . '"><li id="term' . $feature['tid'] . '">' . $feature['view'] . '</li></a>' ;
}?>
</ul>
Picture is attached below.