Hi I want to modify the default joomla banner module so instead of displaying only banner image it also displays description text that has been entered in the backend.
Can you help me? Thanks
Hi I want to modify the default joomla banner module so instead of displaying
Share
If you are using default
mod_bannerofJoomla, you need to add some changes in it to show your description in the module where you want to show it.You need to go to the front-end component,
modelsofcom_bannersforbanners.php.Navigation for it iscomponents\com_banners\models\banners.phpin this file on thegetListQueryyou need to add the following line of code in the'a.description as description,'.in$query->selectlike others. That’s it for this file.Now go to your
modules\mod_banners\tmpl\default.phpand access that variable description as you triedecho $item->description.Or
If you don’t want to change your core files then you need to do it with Template override the output from the Joomla! core.
For more details go to that link How to override the output from the Joomla! core