Is it possible to hide childs in node teaser

terry22 - August 30, 2009 - 15:49
Project:Node Relativity
Version:6.x-3.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

Hi,
Is there a way to hide the child nodes in the teaser view of a parent node?

thank you for your help

#1

terry22 - August 31, 2009 - 16:07
Title:do not show childs in node teaser» Is it possible to hide childs in node teaser

#2

chaosprinz - September 26, 2009 - 17:40

Yes it is. Its just a thing of your theming. You have to create a .tpl.php for your parent-nodetype, where you

<?php
print $node->content['relativity_children']['#value']
?>
to give out your childrennodes, and wrap this print with a
<?php
if $page:
?>
<?php
endif;
?>

 
 

Drupal is a registered trademark of Dries Buytaert.