Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidBruchmann committed Mar 29, 2024
1 parent 989c2e0 commit 12d5a62
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ if (!is_array($GLOBALS['TCA']['tt_content']['types']['{extension.extensionKey}_{
'tt_content',
'CType',
[
'{plugin.name -> k:format.quoteString()}',
'{extension.extensionKey}_{plugin.key}',
'{extension.extensionKey}-plugin-{plugin.key}',
'{extension.extensionKey}'
'label' => '{plugin.name -> k:format.quoteString()}',
'value' => '{extension.extensionKey}_{plugin.key}',
'icon' => '{extension.extensionKey}-plugin-{plugin.key}',
'group' => '{extension.extensionKey}'
]
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ return [
'renderType' => 'selectSingle',
'default' => 0,
'items' => [
['', 0],
['label' => '', 'value' => 0],
],
'foreign_table' => '{domainObject.databaseTableName}',
'foreign_table_where' => 'AND <k:curlyBrackets>#{domainObject.databaseTableName}</k:curlyBrackets>.<k:curlyBrackets>#pid</k:curlyBrackets>=###CURRENT_PID### AND <k:curlyBrackets>#{domainObject.databaseTableName}</k:curlyBrackets>.<k:curlyBrackets>#sys_language_uid</k:curlyBrackets> IN (-1,0)',
Expand All @@ -60,8 +60,7 @@ return [
'renderType' => 'checkboxToggle',
'items' => [
[
0 => '',
1 => '',
'label' => '',
'invertStateDisplay' => true
]
],
Expand All @@ -71,9 +70,8 @@ return [
'exclude' => true,
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.starttime',
'config' => [
'type' => 'input',
'renderType' => 'inputDateTime',
'eval' => 'datetime,int',
'type' => 'datetime',
'format' => 'datetime',
'default' => 0,
'behaviour' => [
'allowLanguageSynchronization' => true
Expand All @@ -84,9 +82,8 @@ return [
'exclude' => true,
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.endtime',
'config' => [
'type' => 'input',
'renderType' => 'inputDateTime',
'eval' => 'datetime,int',
'type' => 'datetime',
'format' => 'datetime',
'default' => 0,
'range' => [
'upper' => mktime(0, 0, 0, 1, 1, 2038)
Expand Down

0 comments on commit 12d5a62

Please sign in to comment.