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

CommentFileSizeAuthor
#1 picture.jpg29.92 KBha5bro

Comments

ha5bro’s picture

Title: term descriptions » slightly unorthodox, but very painless solution
StatusFileSize
new29.92 KB

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.