Closed (fixed)
Project:
Content Templates (Contemplate)
Version:
5.x-1.2
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
29 Aug 2007 at 13:05 UTC
Updated:
13 May 2008 at 02:42 UTC
Hi!
In content templates module im using templates for blogs, audio, video and other content types.
My question:
Now i need to print the $body inside the teaser for the blog content template, without the read more link, only when the taxonomy is equal to "Something", how can i do this?
I was using and testing this in the text area for teaser, but nothing happens :(
if ( $node->taxonomy[78]->tid ) {
print $body;
}
else{
print $teaser;
}
Any help is welcome.
Thanks in advance.
Comments
Comment #1
jrglasgow commentedThe teaser section doesn't have the body loaded by default, you need to do it like this:
When you have the taxonomy # 78 it will load the whole node into
$this_nodethen you can print$this_node->bodyComment #2
jrglasgow commentedDoes this solve your problem?
Comment #3
jrglasgow commentedclosing this issue assuming it is fixed