Forums / General / Need owner name of child node

Need owner name of child node

Author Message

Milad P

Thursday 15 June 2006 5:26:56 am

Some of the nodes that i fetch has children. I want to read the owner name of the child node, How do i do that? Right now my foreach loop gives me owner name of the parent node of the children.

{let faqlist}
{set faqlist=fetch( 'content', 'list', hash( 'parent_node_id', $parent, 'offset', $offset, 'sort_by', array( 'published', false())))}

                                {def $bygroups=array()}
                                {foreach $faqlist as $faq}
                                                {set $bygroups=$bygroups|append($faq.object.owner.name)}
                                {/foreach}