How to get the current active menu name using the Joomla! 1.5 api

No Comments

By typing the code below within the appropriate place the active menu item name will be echoed to the browser

<?php echo JSite::getMenu()->getActive()->name; ?>

To read more about the JSite class click here

Image Credits: Photo by Isis França on Unsplash.

Related Articles

No results found

Leave a Reply

avatar
  Subscribe  
Notify of
Menu
Copy link