smichaelsen/listmod

There is no license information available for the latest version (0.3.1) of this package.

Installs: 33

Dependents: 0

Suggesters: 0

Security: 0

Stars: 6

Watchers: 3

Forks: 0

Open Issues: 2

Type:typo3-cms-extension

0.3.1 2013-09-05 13:25 UTC

This package is auto-updated.

Last update: 2024-10-29 04:47:37 UTC


README

Extension Key: listmod

EXT:listmod adds some additional features to the list module.

addWhere

You can add restrictions to the SQL query for each table to hide certain records. This is done via TSconfig:

mod.web_list.addWhere {
    tt_content = AND CType = 'text'
}

Will result in the list module only showing text content elements.

Filters

This functionality is taken over from EXT:be_tablefilter. I integrated it’s code and just slightly modified it to work with TYPO3 6.1.

$GLOBALS['TCA']['fe_users']['ctrl']['filter'] = TRUE;

Activates the usage of filters for fe_users. This won’t have any effect yet as we need to configure filter fields.

$GLOBALS['TCA']['fe_users']['columns']['username']['config_filter'] = $GLOBALS['TCA']['fe_users']['columns']['username']['config'];

A filter for the username field. We just want a simple input field for that, so we just copy over TCA config of this field. When you open the list view on a page that has frontend users you will have a searchbox to search for usernames.

$GLOBALS['TCA']['fe_users']['columns']['usergroup']['config_filter'] = array(
    'type' => 'select',
    'items' => array(
        array('', ''),
    ),
    'foreign_table' => 'fe_groups',
    'foreign_table_where' => 'ORDER BY fe_groups.title ASC',
);

An additional filter for the usergroup. Notice that it won’t appear unless you have configured usergroup as a visible field in the list module. The next feature (“forceColumnVisibility”) might also be helpful for that.

forceColumnVisibility

In the single table view (click the + next to the table name ist list view) every user can configure the fields that appear directly in the list view. But sometimes you might want to force the visiblity of a field.

$GLOBALS['TCA']['fe_users']['columns']['usergroup']['config']['forceColumnVisibility'] = TRUE;

Voila!

enableControls

If the control panel (extended view )is activated in the list module, several icons are displayed to interact with the records (edit, move, history, etc.). With the following options you can enable/disable those controls. The key _default will apply to all tables. You can overwrite its configuration for each table.

mod.web_list {
    enableDisplayBigControlPanel = activated
    enableControls {
        _default {
            edit = 0
            history = 0
        }
        tt_content {
            history = 1
            moveDown = 0
            moveUp = 0
        }
    }
}

This will disable the edit icon for all tables, disable history for all table except tt_content and disable moveDown and moveUp for tt_content. The names of all icons are: view, edit, move, viewBig, history, version, perms, new, moveUp, moveDown, hide, delete, moveLeft, moveRight

Flattr Button