• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Nodehandler problem with childnodes

R

ragtek

Guest
#1
This is my current node tree:
nodetree.PNG

When i view the indexpage, i'm getting the "root node", but the nodehandler doesn't get any childnodes when renderNodeForTree gets called.
I've started debugging and $renderedChildren was always an empty array instead of including the childnodes.
debug.PNG

Is there something i haven't called, or why does this not include my childnodes?
I've checked the code and AFAIK the XenForo_ViewPublic_Helper_Node::renderNodeTree should handle this, so i don't need to do anything, or? So what's wrong with my code?:)

PHP:
    public function renderNodeForTree(XenForo_View $view, array $node, array $permissions,
        array $renderedChildren, $level
    )
    {
        $node['article_count'] = $this->_getCategoryModel()->countArticlesInCategory($node); // TODO das gehört ausgelagert
        return $view->createTemplateObject('ragtek_article_node', array(
                                                                      'level' => $level,
                                                                      'category' => $node,
                                                                      'renderChildrend' => $renderedChildren
                                                                  ));
    }
My node template also includes thechildren part(but i don't see it because of the empty array)
Code:
                <xen:if is="{$renderedChildren}">
                    <div class="Popup subForumsPopup">
                        <a href="{xen:link forums, $forum}" rel="Menu" class="cloaked" data-closemenu="true"><span class="dt">{xen:phrase sub_forums}:</span> {xen:number $forum.childCount}</a>

                        <div class="Menu JsOnly subForumsMenu">
                            <div class="primaryContent menuHeader">
                                <h3>{$category.title}</h3>
                                <div class="muted">Unterkategorien</div>
                            </div>
                            <ol class="secondaryContent blockLinksList">
                            <xen:foreach loop="$renderedChildren" value="$child">
                                {xen:raw $child}
                            </xen:foreach>
                            </ol>
                        </div>
                    </div>
                </xen:if>