Closed (fixed)
Project:
Content Templates (Contemplate)
Version:
master
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
2 Oct 2006 at 11:11 UTC
Updated:
18 Mar 2008 at 09:11 UTC
Again, sorry but i cannot manage to output taxonomy (or category) $terms for my nodes..
pasting
print $terms
in my contemplate does not do the job...am i missing something? :o
Thank you
Comments
Comment #1
redmonk commentedThere is a variable already provided in contemplate: $taxonomy (array). Look near the end of the list of terms that can be clicked to insert them into your template.
Comment #2
jrglasgow commentedYou need to use variables that are available to contemplate, look on 'admin/content/templates/{node}' for each section you can create a template there is a section of variables, i.e. 'teaser variables', this has a list of available variables from a sample node. you should see an array $node->taxonomy. See my answer to #183106: insert taxonomy links as usual ... or #188355: Taxonomy Term varies depending on the node
Comment #3
jrglasgow commentedDoes this solve your problem?
Comment #4
marcoBauli commentedwow, i'm sorry i didn't follow up properly with this... something i was dealing long time ago, actually i guess working directly in PHPTemplate is a much better solution, with all respect to Contemplate that is a good fellow while learning it ;)
good to know for further reference BTW, many thanks guys for chipping in!