xycofryx
Member
Joomla: 3.9.3
Fabrik: 3.9
Good day!
I wanted my dropdown range filter to be horizontal instead of vertical (Please Attachments)
I manage to do this by modifying models/element.php. Now I'm afraid that every time I update Fabrik I might loose the modifications I have made in the element.php. Is there such thing as overriding the element.php file without worrying that I might overwrite the modification that I have made?
Fabrik: 3.9
Good day!
I wanted my dropdown range filter to be horizontal instead of vertical (Please Attachments)
Code:
if ($type === 'list')
{
$return[] = '<div class="container">';
$return[] = '<div class="row">';
$return[] = '<div class="col-md-6 pl-0">';
$return[] = JHTML::_('select.genericlist', $rows, $v . '[0]', $attributes, 'value', 'text', $def0, $element->name . '_filter_range_0');
$return[] = '</div>';
$return[] = '<div class="col-md-6 pl-0 pr-0">';
$return[] = JHTML::_('select.genericlist', $rows, $v . '[1]', $attributes, 'value', 'text', $def1, $element->name . '_filter_range_1');
$return[] = '</div>';
$return[] = '</div>';
$return[] = '</div>';
}
I manage to do this by modifying models/element.php. Now I'm afraid that every time I update Fabrik I might loose the modifications I have made in the element.php. Is there such thing as overriding the element.php file without worrying that I might overwrite the modification that I have made?