Download & Extend

Is it possible to hide childs in node teaser

Project:Node Relativity
Version:6.x-3.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

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

thank you for your help

Comments

#1

Title:do not show childs in node teaser» Is it possible to hide childs in node teaser

#2

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;
?>

#3

Hi, I am having the same problem, but don't quite understand this solution.

I have everything working just right, except for the child node content appearing in the parent view teaser. I don't have a strong PHP background, so please assume I know nothing in your explanation.

Thanks a bunch in advance!

Andrew

nobody click here