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

thank you for your help

Comments

terry22’s picture

Title: do not show childs in node teaser » Is it possible to hide childs in node teaser
chaosprinz’s picture

Yes it is. Its just a thing of your theming. You have to create a .tpl.php for your parent-nodetype, where you print $node->content['relativity_children']['#value'] to give out your childrennodes, and wrap this print with a if $page: endif;

dunklea’s picture

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