LPH
Well-known member
Hi
I'm tinkering today to clear my mind of unrelated things and realized my understanding of how to grab certain portions of XenForo 2 are very weak.
To recreate the navigation menu, I was looking at pulling from the Navigation Repository, using the
This is my code so far:
Looking at the
Does anyone have any suggestions on how to move forward?
I'm tinkering today to clear my mind of unrelated things and realized my understanding of how to grab certain portions of XenForo 2 are very weak.
To recreate the navigation menu, I was looking at pulling from the Navigation Repository, using the
createNavigationTree
and stuffing the appropriate information into the templater()
This is my code so far:
PHP:
/** @var \XF\Repository\Navigation $navRepo */
$navRepo = \XF::app()->repository( 'XF:Navigation' );
$navCacheData = $navRepo->createNavigationTree();
\XF::dump($navCacheData);
// $navTitle = \XF::app()->templater()->fn()
Looking at the
$navCacheData
shows what I need BUT choosing the appropriate information for templater
is where I get lost. Does anyone have any suggestions on how to move forward?