Skip to content

Commit

Permalink
Merge pull request #1 from b13/task/v12-v13-requirements
Browse files Browse the repository at this point in the history
!!![TASK] define requirements
  • Loading branch information
achimfritz authored Apr 16, 2024
2 parents 8293889 + 7601b1d commit c345f82
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 52 deletions.
70 changes: 35 additions & 35 deletions Configuration/TCA/Overrides/tt_content.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,79 +5,79 @@
'tx_headertypes_headertype' => [
'label' => 'LLL:EXT:headertypes/Resources/Private/Language/locallang.xlf:headertype',
'config' => [
'default' => '0',
'default' => 0,
'type' => 'select',
'renderType' => 'selectSingle',
'items' => [
[
'LLL:EXT:headertypes/Resources/Private/Language/locallang.xlf:type.I.default',
'0'
'label' => 'LLL:EXT:headertypes/Resources/Private/Language/locallang.xlf:type.I.default',
'value' => 0,
],
[
'LLL:EXT:headertypes/Resources/Private/Language/locallang.xlf:type.I.h1',
'1'
'label' => 'LLL:EXT:headertypes/Resources/Private/Language/locallang.xlf:type.I.h1',
'value' => 1,
],
[
'LLL:EXT:headertypes/Resources/Private/Language/locallang.xlf:type.I.h2',
'2'
'label' => 'LLL:EXT:headertypes/Resources/Private/Language/locallang.xlf:type.I.h2',
'value' => 2,
],
[
'LLL:EXT:headertypes/Resources/Private/Language/locallang.xlf:type.I.h3',
'3'
'label' => 'LLL:EXT:headertypes/Resources/Private/Language/locallang.xlf:type.I.h3',
'value' => 3,
],
[
'LLL:EXT:headertypes/Resources/Private/Language/locallang.xlf:type.I.h4',
'4'
'label' => 'LLL:EXT:headertypes/Resources/Private/Language/locallang.xlf:type.I.h4',
'value' => 4,
],
[
'LLL:EXT:headertypes/Resources/Private/Language/locallang.xlf:type.I.h5',
'5'
'label' => 'LLL:EXT:headertypes/Resources/Private/Language/locallang.xlf:type.I.h5',
'value' => 5,
],
[
'LLL:EXT:headertypes/Resources/Private/Language/locallang.xlf:type.I.h6',
'6'
'label' => 'LLL:EXT:headertypes/Resources/Private/Language/locallang.xlf:type.I.h6',
'value' => 6,
],
]
]
],
],
],
'tx_headertypes_subheadertype' => [
'label' => 'LLL:EXT:headertypes/Resources/Private/Language/locallang.xlf:subheadertype',
'config' => [
'default' => '0',
'default' => 0,
'type' => 'select',
'renderType' => 'selectSingle',
'items' => [
[
'LLL:EXT:headertypes/Resources/Private/Language/locallang.xlf:type.I.default',
'0'
'label' => 'LLL:EXT:headertypes/Resources/Private/Language/locallang.xlf:type.I.default',
'value' => 0,
],
[
'LLL:EXT:headertypes/Resources/Private/Language/locallang.xlf:type.I.h1',
'1'
'label' => 'LLL:EXT:headertypes/Resources/Private/Language/locallang.xlf:type.I.h1',
'value' => 1,
],
[
'LLL:EXT:headertypes/Resources/Private/Language/locallang.xlf:type.I.h2',
'2'
'label' => 'LLL:EXT:headertypes/Resources/Private/Language/locallang.xlf:type.I.h2',
'value' => 2,
],
[
'LLL:EXT:headertypes/Resources/Private/Language/locallang.xlf:type.I.h3',
'3'
'label' => 'LLL:EXT:headertypes/Resources/Private/Language/locallang.xlf:type.I.h3',
'value' => 3,
],
[
'LLL:EXT:headertypes/Resources/Private/Language/locallang.xlf:type.I.h4',
'4'
'label' => 'LLL:EXT:headertypes/Resources/Private/Language/locallang.xlf:type.I.h4',
'value' => 4,
],
[
'LLL:EXT:headertypes/Resources/Private/Language/locallang.xlf:type.I.h5',
'5'
'label' => 'LLL:EXT:headertypes/Resources/Private/Language/locallang.xlf:type.I.h5',
'value' => 5,
],
[
'LLL:EXT:headertypes/Resources/Private/Language/locallang.xlf:type.I.h6',
'6'
'label' => 'LLL:EXT:headertypes/Resources/Private/Language/locallang.xlf:type.I.h6',
'value' => 6,
],
]
]
]
],
],
],
];

\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns(
Expand Down
26 changes: 12 additions & 14 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
{
"name": "b13/headertypes",
"type": "typo3-cms-extension",
"description": "Add a separate header type field to tt_content for headers and subheaders",
"license": ["GPL-2.0-or-later"],
"extra": {
"typo3/cms": {
"extension-key": "headertypes"
}
},
"autoload": {
"psr-4": {
"B13\\Headertypes\\": "Classes/"
}
}
"name": "b13/headertypes",
"type": "typo3-cms-extension",
"description": "Add a separate header type field to tt_content for headers and subheaders",
"license": ["GPL-2.0-or-later"],
"require": {
"typo3/cms-core": "^12.4 || ^13.0"
},
"extra": {
"typo3/cms": {
"extension-key": "headertypes"
}
}
}
4 changes: 1 addition & 3 deletions ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,5 @@
'author_email' => '[email protected]',
'author_company' => 'b13 GmbH, Stuttgart',
'state' => 'stable',
'uploadfolder' => 0,
'clearCacheOnLoad' => 1,
'version' => '1.0.0'
'version' => '1.0.0',
];

0 comments on commit c345f82

Please sign in to comment.