New answers tagged

3

You can use the following: $menu = Joomla\CMS\Factory::getApplication()->getMenu(); $menuItem = $menu->getItem($menulink); echo $menuItem->title; If you var_dump($menuItem);, it will show you which properties are available for said menu item.


2

Access the link fields the same way you're accessing other fields, through the main activities field. <?php foreach ((array) $activities as $activity) : ?> <?php foreach ((array) $activity->links as $link) : ?> <?php echo $link->menulink; ?> <?php endforeach; ?> <?php endforeach; ?>


Top 50 recent answers are included