monkframes
Member
To whom it may concern:
If you set "Use as row class" to "Yes" in "List view settings" -> "List settings" of an element, and you are using the list DIV template, the classes shown in the list are all the same in all of the rows (actually the ones corresponding to the last element).
I solved that diving in the code and making a very simple change in the file /components/com_fabrik/views/list/tmpl/div/default.php (lines 83-91):
Original code:
My change:
I hope this may be useful for anyone else.
If you set "Use as row class" to "Yes" in "List view settings" -> "List settings" of an element, and you are using the list DIV template, the classes shown in the list are all the same in all of the rows (actually the ones corresponding to the last element).
I solved that diving in the code and making a very simple change in the file /components/com_fabrik/views/list/tmpl/div/default.php (lines 83-91):
Original code:
Code:
<?php
$items = array();
foreach ($group as $this->_row) :
$items[] = $this->loadTemplate('row');
endforeach;
$class = 'fabrik_row well row-striped ' . $this->_row->class;
echo FabrikHelperHTML::bootstrapGrid($items, $columns, $class, true, $this->_row->id);
?>
My change:
Code:
<?php
foreach ($group as $this->_row) :
$items = array();
$items[] = $this->loadTemplate('row');
$class = 'fabrik_row well row-striped ' . $this->_row->class;
echo FabrikHelperHTML::bootstrapGrid($items, $columns, $class, true, $this->_row->id);
endforeach;
?>
I hope this may be useful for anyone else.