Closed (fixed)
Project:
Zen
Version:
7.x-3.x-dev
Component:
PHP Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Feb 2011 at 00:35 UTC
Updated:
3 Mar 2011 at 10:31 UTC
I don't think that this from node.tpl.php works any more:
<?php if (!empty($content['links']['terms'])): ?>
<div class="terms terms-inline"><?php print render($content['links']['terms']); ?></div>
<?php endif; ?>
</div>
<?php endif; ?>
The classes on the terms are the default from core such as 'field-type-taxonomy-term-reference' not "terms terms-inline" .
Comments
Comment #1
Scott J commentedAnyway, now that we have term reference fields, we probably want to leave the control of this at admin/structure/types. The easiest method that I have found for adding/changing classes is to use a field--taxonomy_term_reference.tpl.php template file.
Comment #2
johnalbinThanks, Scott! A patch would have been nice, but you gave enough description that I found all the code and all the classes that needed to be nixed.
You're in the CHANGELOG now!
Fixed. http://drupal.org/cvs?commit=501444
Comment #3
Scott J commentedSorry I didn't get around to posting my file. I did post one over here ;-)