For example, we have some dictionaries with terms and we needed ноды to deduce on page names of these terms to which belongs нода in certain places, for this purpose it is useful the following code which is inserted in node.tpl.php:
<? php $type = $subject = "; foreach ($node-> taxonomy as $term) {if ($term-> vid == 1) $type = $term-> name;} print"$type";?>
We change unit on vid the necessary dictionary.