LPH submitted a new resource:
How To Grab a List of Nodes - Using a repository
Read more about this resource...
How To Grab a List of Nodes - Using a repository
Code:/** @var \XF\Repository\Node $nodeRepo */ $nodeRepo = \XF::app()->repository('XF:Node'); $nodeList = $nodeRepo->createNodeTree($nodeRepo->getFullNodeList()); dump($nodeList);
Returns the following information:
Code:"node_id" => 1 "title" => "XenWord 4 Official Forums" "description" => "" "node_name" => null "node_type_id" => "Category" "parent_node_id" => 0 "display_order" => 1 "display_in_list"...
Read more about this resource...