Taxonomy on node.tpl.php

jmeya - November 25, 2007 - 23:20
Project:Pleroma
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:minor
Assigned:Unassigned
Status:needs review
Description

Hi,
I found that taxonomy did not appear on nodes, because PHP IFs were using "has_terms" instead of "terms". Just change that to make it work.

#1

mlissner - January 21, 2008 - 23:06

Hi, can you give me more information on how to fix this so I can fix it on my installation? I know a little php, but I'm not sure where to look for this kind of thing...

#2

Senpai - January 23, 2008 - 06:51

In the node.tpl.php file, the

<?php
print $has_terms
?>
needs to be changed to
<?php
print $terms
?>

Somebody wanna roll a simple patch for this one?

#3

mlissner - January 24, 2008 - 03:10
Status:active» needs review

Excellent fix. It worked like a charm. I've attempted to roll a patch and attach it here, but I can't say I've ever rolled one before so I'm not sure it's quite right. I followed some directions I found to make this using diff. Hopefully it will work.

AttachmentSize
node.tpl_.php_.patch 802 bytes
 
 

Drupal is a registered trademark of Dries Buytaert.