Menu
\nn\t3::Menu()
Overview of Methods
\nn\t3::Menu()->get($rootPid = NULL, $config = []);
Returns an array with a hierarchical tree structure of the navigation returns. Can be used to render a menu.
// Get structure for current page ID (pid)
\nn\t3::Menu()->get();
// Get structure for page 123
\nn\t3::Menu()->get( 123 );
Copied!
There is also a ViewHelper for this:
{nnt3:menu.directory(pageUid:123, ...)}
Copied!
@param int $rootPid
@param array $config
@return mixed
\nn\t3::Menu()->getRootline($rootPid = NULL, $config = []);
Returns a simple array with the rootline to the current page. Can be used for BreadCrumb navigations
// get rootline for current page ID (pid)
\nn\t3::Menu()->getRootline();
// get rootline for page 123
\nn\t3::Menu()->getRootline( 123 );
Copied!
There is also a ViewHelper for this:
{nnt3:menu.rootline(pageUid:123, ...)}
Copied!
@param int $rootPid
@param array $config
@return mixed