Martooti
Member
In which file should I look to style to filters?
I would like to change "betweeen" and "and" words in range filter, and float some filters in 100% width.
Please point me in the right direction
Actualization:
I managed to change "between" and "and" text by editing fabrik component langage file and lines: COM_FABRIK_DATE_RANGE_AND="To"
COM_FABRIK_DATE_RANGE_BETWEEN="From"
I also edit the date.php file from plugins/fabrik_element/date
to put this labels in span with padding that there is a little space between them and input
in the lines 1495-1499
I am not a developer so for other people like me, I want to add that this "." between strings in the code are very important
I hope it will not destroy the filters functionality and someone else can use it without any problem
Now I am trying to figure out how to edit checkbox filter, but this one seems more difficult. Why it give to every checkbox span12 class and how to change that?
fabrikgrid_checkbox span12
I did change in the element options: filter class to span2 but still it gives span 12
I would like to change "betweeen" and "and" words in range filter, and float some filters in 100% width.
Please point me in the right direction
Actualization:
I managed to change "between" and "and" text by editing fabrik component langage file and lines: COM_FABRIK_DATE_RANGE_AND="To"
COM_FABRIK_DATE_RANGE_BETWEEN="From"
I also edit the date.php file from plugins/fabrik_element/date
to put this labels in span with padding that there is a little space between them and input
in the lines 1495-1499
PHP:
$return[] = '<span style="padding:0 10px">' . FText::_('COM_FABRIK_DATE_RANGE_BETWEEN') . '</span>'
. $this->calendar($default[0], $v . '[0]', $this->getFilterHtmlId(0), $format, $calOpts);
$return[] = '<span style="padding:0 10px">' . FText::_('COM_FABRIK_DATE_RANGE_AND') . '</span>'
. $this->calendar($default[1], $v . '[1]', $this->getFilterHtmlId(1), $format, $calOpts);
$return[] = '</div>';
I am not a developer so for other people like me, I want to add that this "." between strings in the code are very important
I hope it will not destroy the filters functionality and someone else can use it without any problem
Now I am trying to figure out how to edit checkbox filter, but this one seems more difficult. Why it give to every checkbox span12 class and how to change that?
fabrikgrid_checkbox span12
I did change in the element options: filter class to span2 but still it gives span 12