[TYPO3-calendar] Extend tx_cal_event

Falk vixe4all at freenet.de
Fri Apr 17 16:56:43 CEST 2015


Hello,

I want to extend the tx_cal_event with a highlight field via an own extension (TYPO3 6.2). The field exist in the DB (ext_tables.sql) but I can't get the TCA  working.

Is somtething wrong with my "TCA/Overrides/tx_cal_event.php"?

<?php
defined('TYPO3_MODE') or die();

// Adds the highlight field to the tx_cal_event table
$tempColumns = array(
    'highlight' => array(
        'exclude' => 1,
        'label' => 'Highlight',
        'config' => array(
			'type' => 'check',
		),
    )
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('tx_cal_event', $tempColumns);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('tx_cal_event', 'highlight');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addFieldsToPalette(
        'tx_cal_event',
        'general',
        'highlight'
);

Best
Falk


More information about the TYPO3-project-calendar mailing list