asprin
Active member
Hi experts,
The goal is to get the HTML of the following menu
so that I can use the same in an external application (hosted on the same server but outside Xenforo)
I've tried using the following so far:
But this doesn't seem to correspond to the above navigation that is visible to a logged-in user. Any suggestions?
The goal is to get the HTML of the following menu
so that I can use the same in an external application (hosted on the same server but outside Xenforo)
I've tried using the following so far:
PHP:
$navRepo = \XF::app()->repository( 'XF:Navigation' );
$navCacheData = $navRepo->createNavigationTree();
$data = $navCacheData->getDescendants();
print_r($data);
But this doesn't seem to correspond to the above navigation that is visible to a logged-in user. Any suggestions?