R
ragtek
Guest
This is my current node tree:

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.

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?
My node template also includes thechildren part(but i don't see it because of the empty array)

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.

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
));
}
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>