2020-07-29 10:07:14 +02:00
|
|
|
<?php
|
|
|
|
|
2023-05-11 08:15:25 +02:00
|
|
|
$tca = [
|
2020-07-29 10:07:14 +02:00
|
|
|
'ctrl' => [
|
|
|
|
'label' => 'record',
|
|
|
|
'label_alt' => 'crdate',
|
|
|
|
'label_alt_force' => true,
|
|
|
|
'default_sortby' => 'crdate DESC',
|
|
|
|
'tstamp' => 'tstamp',
|
|
|
|
'crdate' => 'crdate',
|
|
|
|
'languageField' => 'sys_language_uid',
|
2021-05-18 22:46:11 +02:00
|
|
|
'transOrigPointerField' => 'l10n_parent',
|
2020-07-29 10:07:14 +02:00
|
|
|
'title' => 'LLL:EXT:tracking/Resources/Private/Language/locallang_tca.xlf:table.recordview',
|
2020-09-23 09:43:35 +02:00
|
|
|
'iconfile' => 'EXT:tracking/Resources/Public/Icons/Record/Recordview.svg',
|
2020-07-29 10:07:14 +02:00
|
|
|
],
|
|
|
|
'types' => [
|
|
|
|
'0' => [
|
|
|
|
'showitem' => 'sys_language_uid, pid, record, url, user_agent, operating_system, crdate',
|
|
|
|
],
|
|
|
|
],
|
|
|
|
'columns' => [
|
|
|
|
'pid' => [
|
|
|
|
'label' => 'LLL:EXT:tracking/Resources/Private/Language/locallang_tca.xlf:table.recordview.pid',
|
|
|
|
'config' => [
|
|
|
|
// TYPO3 v10 does no longer allow to resolve PID relations, e.g. via select or group
|
|
|
|
// This will break internal PID handling.
|
|
|
|
'type' => 'input',
|
|
|
|
'readOnly' => true,
|
|
|
|
],
|
|
|
|
],
|
|
|
|
'crdate' => [
|
|
|
|
'label' => 'LLL:EXT:tracking/Resources/Private/Language/locallang_tca.xlf:table.recordview.crdate',
|
|
|
|
'config' => [
|
2023-05-11 08:15:25 +02:00
|
|
|
'type' => 'inputDateTime',
|
2020-07-29 10:07:14 +02:00
|
|
|
],
|
|
|
|
],
|
|
|
|
'sys_language_uid' => [
|
|
|
|
'label' => 'LLL:EXT:tracking/Resources/Private/Language/locallang_tca.xlf:table.recordview.sys_language',
|
2023-04-26 17:29:23 +02:00
|
|
|
'config' => ['type' => 'language'],
|
2020-07-29 10:07:14 +02:00
|
|
|
],
|
|
|
|
'user_agent' => [
|
|
|
|
'label' => 'LLL:EXT:tracking/Resources/Private/Language/locallang_tca.xlf:table.recordview.user_agent',
|
|
|
|
'config' => [
|
|
|
|
'type' => 'input',
|
|
|
|
'readOnly' => true,
|
|
|
|
],
|
|
|
|
],
|
|
|
|
'operating_system' => [
|
|
|
|
'label' => 'LLL:EXT:tracking/Resources/Private/Language/locallang_tca.xlf:table.recordview.operating_system',
|
|
|
|
'config' => [
|
|
|
|
'type' => 'input',
|
|
|
|
'readOnly' => true,
|
|
|
|
],
|
|
|
|
],
|
|
|
|
'url' => [
|
|
|
|
'label' => 'LLL:EXT:tracking/Resources/Private/Language/locallang_tca.xlf:table.recordview.url',
|
|
|
|
'config' => [
|
|
|
|
'readOnly' => true,
|
|
|
|
'type' => 'input',
|
|
|
|
'size' => 50,
|
|
|
|
],
|
|
|
|
],
|
|
|
|
'record' => [
|
|
|
|
'label' => 'LLL:EXT:tracking/Resources/Private/Language/locallang_tca.xlf:table.recordview.record',
|
|
|
|
'config' => [
|
|
|
|
'type' => 'group',
|
|
|
|
'allowed' => 'tt_content,sys_category,pages',
|
|
|
|
'maxitems' => 1,
|
|
|
|
'minitems' => 1,
|
|
|
|
'size' => 1,
|
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
];
|
2023-05-11 08:15:25 +02:00
|
|
|
|
|
|
|
if ((new \TYPO3\CMS\Core\Information\Typo3Version())->getMajorVersion() < 12) {
|
|
|
|
$tca['ctrl']['cruser_id'] = 'cruser_id';
|
|
|
|
|
|
|
|
$tca['columns']['crdate']['config']['type'] = 'input';
|
|
|
|
$tca['columns']['crdate']['config']['renderType'] = 'inputDateTime';
|
|
|
|
$tca['columns']['crdate']['config']['eval'] = 'datetime';
|
|
|
|
}
|
|
|
|
|
|
|
|
return $tca;
|