Solved Can't override Fabrik layout

jfquestiaux

Well-Known Member
Hi,
I wish to override some of the Fabrik layouts.
It is working fine with files in components > com_fabrik > layouts (like fabrik-icon.php for example). I put them in templates > my_template > html > layouts > com_fabrik and can do an override.

But I can't do the same with files in components > com_fabrik > layouts > list (like fabrik-filters-bootstrap.php). I put the file in templates > my_template > html > layouts > com_fabrik > list, but it's still the original file that is taken into account.

Am I doing something wrong or is is a bug?

Tested on Joomla! 5.2.0 and Fabrik 4.4.1

Edit: I think it is a bug because overrides are possible in files in components > com_fabrik > layouts > listactions
 
Last edited:
Maybe you have also to overide fabrik-filters.php , which does only
Code:
/*Use only one file for 1 and >1 filter columns.
* view.html.php is doing $layoutFile = $this->filterCols > 1 ? 'fabrik-filters-bootstrap' : 'fabrik-filters';
* Leaving this and keep this fabrik-filters.php in case of existing layout overrides (Fabrik3 upgrades).
*/
include 'fabrik-filters-bootstrap.php';

Do you have a one- or a multi-column filter?
 
Thank you, that was it. You need to have fabrik-filters.php AND fabrik-filters-bootstrap in the html folder to be able to do the override.
 
Back
Top