asprin
Active member
On an external PHP script, I'm using the following the code to fetch the nodes. My requirement is to display a tree-like structure of category-forum on a page so that a user can select a forum from the list. The code is as follows:
This prints out the following:
I'm able to access the node values with
PHP:
$nodeRepo = \XF::app()->repository('XF:Node');
$nodeList = $nodeRepo->createNodeTree($nodeRepo->getNodeList());
foreach($nodeList as $obj)
{
print_r($obj);
}
This prints out the following:
I'm able to access the node values with
$obj['record']->title
but how would I get the children of that node?
Last edited: