I'm using Joomla 3.1 and I'm using template hacks to override mod_banners -
/mytemplate/html/mod_banners/default.php
Which is working fine.
However, the banners module calls the file:
/components/com_banners/models/banners.php
Which I can't seem to override. I've tried moving the file (and folders) into my /mytemplate/html folder, but that doesn't work.
I've also tried putting the following code into my banners default.php file:
JModelLegacy::addIncludePath(JPATH_ROOT.'/templates/home/com_banners/models/', 'BannersModel');
$model = JModelLegacy::getInstance('Banners', 'BannersModel', array('ignore_request' => true));
$banners = $model->getItems();
But that doesn't work either. Is there any way I can override the query in /com_banners/models/banners.php without changing the core files?
All I'm trying to do is to pull in the descriptions for each banner, without changing the core.
Thanks in advance!