Closed (works as designed)
Project:
Taxonomy context
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
29 May 2006 at 10:12 UTC
Updated:
20 Jul 2009 at 03:27 UTC
My problem fits in the title, but here is more explanation:
I am accessing $node->taxonomy in node.tpl.php, which works well when taxonomy_context module is not active. When it is active, $node->taxonomy is empty, which breaks my code.
Any explanation, or solution?
Thank you in advance.
Comments
Comment #1
nedjoThere is an optional setting by node type that resets the $node->taxonomy value and instead displays taxonomy information inline as part of the node body. It sounds like that setting has been set on your site. If so, you need to unset it at admin/settings/content-types/whateveryourcontenttypeis.
Comment #2
David Stosik commentedThank you!
Okay, THAT was the problem, so now, if I want to use $node->taxonomy in my node.tpl.php, I will have to theme manually my taxonomy if I want to display it, right?
Comment #3
nedjoComment #4
charlie-s commentedI had to navigate to
http://www.example.com/admin/settings/taxonomy_hide
and uncheck "hide" for all of my taxonomy types. This page's description is misleading, as it leads the average Drupal user to think that this is going to be auto inserted into your node's content output when really it just "releases" it into the $node object and allows you to work with it if you'd like to.