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!

We use cookies so that you can place orders and we can provide a better service. You can control the use of cookies at the individual browser level. If you reject cookies, you may still use our website, but your ability to use some features or areas of our website may be limited.