Blog

Changing Joomla module title

Do you know that we can dynamically change the Joomla module title right in the module layout?

We can control the title via $module variable available in layout.

The simple example is having dynamical 'Hi Username,' title for login module where Username will be changed for current user.

Edit the layout of mod_menu and add 1 line of PHP:

$module->title = JText::sprintf('MOD_LOGIN_HINAME', htmlspecialchars($user->get('name')));

Need Help?

If you are in need of help or have any questions regarding our products you may use one of the links below:

Our Newsletter

Get the latest news, product updates and special offers!