<?php print $node->content['#children'] ?> Outputs parent node

joeyjoey - June 25, 2008 - 13:37
Project:Node Relativity
Version:5.x-2.3
Component:Code
Category:support request
Priority:normal
Assigned:joeyjoey
Status:active
Description

When I use

<?php
print $node->content['#children']
?>
in the template for my parent node it lists a really nice list of child nodes, the only issue being the fields for the parent node are automatically inserted right above the list of child nodes. How can I change this, is there a function somewhere that could be modified or a setting that may need to be set.

Great module btw!

#1

randomuser - July 23, 2009 - 21:12

+1

#2

randomuser - July 23, 2009 - 22:45

Finally managed to get this, the Devel module reported the arrays we need to call.

<?php
print $node->content['relativity_children']['#value'];
?>

<?php
print $node->content['relativity_operations']['#value'];
?>

 
 

Drupal is a registered trademark of Dries Buytaert.