Timeline for Adding $terms to the byline in node.tpl.php for Drupal 7 and Acquia Prosper & Fusion Framework
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 20, 2013 at 23:46 | comment | added | Rob Orr | Correct essentially. My field name's machine name is 'field_category' and I printed that using the code you mentioned and I wasn't able to get anything to render. I'll double-check the cache, but I'm fairly certain it was cleared and that's the only field with that name. | |
Mar 15, 2013 at 15:45 | comment | added | Boriana Ditcheva | So you're saying that you can see on the content type that the field you're using to tag has a machine name of 'field_tags' and you're printing that field out with print render($content['field_tags']); and clearing cache and it's not printing it out? You're definitely using the correct field name and clearing cache? | |
Mar 15, 2013 at 0:46 | comment | added | Rob Orr | BTW - the bulk of the template.php is inherited from its parent theme which is Fusion Core, but there are no preprocess funtions for 'terms' there either. | |
Mar 14, 2013 at 23:56 | comment | added | Rob Orr |
Ok- thank you so much for the response. I do not have those preprocess functions in the template.php file. Here is what's in that file out of the box: code /* Override or insert variables into the html template.*/ function acquia_prosper_process_html(&$variables){ // Hook into color module if (module_exists('color')) { _color_html_alter($variables); } } code Do you have advice for how to best add it? BTW - your second solution code <?php print render($content['field_tags']); ?> code was one of the options I previously tried.
|
|
Mar 14, 2013 at 19:09 | history | answered | Boriana Ditcheva | CC BY-SA 3.0 |