Hey everyone,
for a layout i need to assign a class to the first item of each row in the Blog layout of K2. I've got 4 columns. There can be found this in the category.php:
Well, i'm wondering if it is possible to modify this code to reach the first item of a each row (appropriate to this one i want to adress the first item of each row in this way).
Would be very thankful for help.
I.B.
for a layout i need to assign a class to the first item of each row in the Blog layout of K2. I've got 4 columns. There can be found this in the category.php:
<?php
// Define a CSS class for the last container on each row
if( (($key+1)%($this->params->get('num_primary_columns'))==0) || count($this->primary)<$this->params->get('num_primary_columns') )
$lastContainer= ' itemContainerLast';
else
$lastContainer='';
?>Well, i'm wondering if it is possible to modify this code to reach the first item of a each row (appropriate to this one i want to adress the first item of each row in this way).
Would be very thankful for help.
I.B.