Hallo neuhier,
da ist nicht so viel zu notwendig:
1) In der DCA
PHP-Code:
'global_operations' => array
(
'export' => array
(
'label' => &$GLOBALS['TL_LANG']['tl_foo']['export'],
'href' => 'key=export',
'class' => 'header_xls_export',
'attributes' => 'onclick="Backend.getScrollOffset();"'
)
2) Und in der config.php des Moduls
PHP-Code:
'meinModul' => array
(
'tables' => array('tl_foo'),
'export' => array('meinModul', 'meineModulRoutine'),
'icon' => 'system/modules/meinModul/icon.gif'
),
3) Dann hast Du in Deinem Modul:
PHP-Code:
class meinModul extends Backend
{
public function meineModulRoutine( )
{
if( $this->Input->get('key') === 'export' ) {
//... some export code
}
Lesezeichen