group heading in list view missing

bea

Active Member
Hi,
I can't get it work to show the group names in list view like in F2 ;)

Many thanks.
Bianka
 
Yup, this feature is gone.
I assume it's because you can set the elements for list view display in the menu item in arbitrary order.
But every element <td> and <th> has a class "fabrik_list_X_group_Y" so you can style (e.g. the background)

Additionally you can try to use a custom list template and change default_headers.php.
 
Thank you again. I will try, but still missing this feature.

I took some script from F2 ;) and copied into default_headings.php in my list template.
It seems to work!

PHP:
<?php if (count($this->groupheadings) > 1) { ?>
   <tr class="fabrik___heading">
   <?php
   $t = 0;
   foreach ($this->groupheadings as $label=>$colspan) {
   $t += $colspan;?>
     <th colspan="<?php echo $colspan ? $colspan : 1;?>">
       <?php echo $label; ?>
     </th>
   <?php }
     $t ++;
     if($t < count($this->headings)) {?>
       <th colspan="<?php echo count($this->headings) - count($this->groupheadings)?>"></th>
     <?php
     }?>
   </tr>
<?php } ?>
 
Last edited:
Last edited:
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top