1. Fabrik 3.8.1 has been released. It is mostly bug fixes and feature enhancements, but does include two new plugins (push notifications, and the sequence element). As usual we strongly recommend testing the new release on a sandbox if your application is mission critical, and always do an Akeeba backup before updating.

Remove a list column

May 28, 2013
Remove a list column
  • In components/com_fabrik/views/list/tmpl/yourtemplate/default_headings.php, you have a variable
    PHP:
    $this->headings.

    This variable is an array, which is keyed on the full element name and whose values contains the headings for the list

    PHP:

    Array
    (
    [jos_element_test___fabrik_internal_id] => fabrik internal id
    [jos_element_test___time_date] => time date
    [jos_element_test___int] => int
    [fabrik_delete] =>
    [fabrik_edit] => edit
    [fabrik_view] => view details
    )
     
    If you remove an entry from the array the corresponding column will not be rendered, so adding the following code to the beginning of default_headings.php
    PHP:

    unset($this->headings['jos_element_test___time_date']);
     
    will stop the 'time date' column from showing in the list