Commit 02ecaf17 authored by Carsten  Rose's avatar Carsten Rose
Browse files

Checks for T3 Version < 9.0:

  yes: t3editor with sparql
  no: t3editor plain/bracketmatch
parent 87f6aaac
Pipeline #1823 passed with stage
in 2 minutes and 16 seconds
......@@ -14,7 +14,7 @@ if (!defined('TYPO3_MODE')) {
die ('Access denied.');
}
if(is_array($GLOBALS['TCA']['tt_content']['palettes'])) {
if (is_array($GLOBALS['TCA']['tt_content']['palettes'])) {
$GLOBALS['TCA']['tt_content']['palettes']['introheader']['showitem'] = 'header, CType';
$GLOBALS['TCA']['tt_content']['palettes']['startendtime']['showitem'] = 'starttime, endtime';
$GLOBALS['TCA']['tt_content']['palettes']['layoutpalette1']['showitem'] = 'colPos, header_position, sys_language_uid';
......@@ -22,7 +22,7 @@ if(is_array($GLOBALS['TCA']['tt_content']['palettes'])) {
$GLOBALS['TCA']['tt_content']['palettes']['spacearound']['showitem'] = 'spaceBefore, spaceAfter';
}
if(is_array($GLOBALS['TCA']['tt_content']['types'])) {
if (is_array($GLOBALS['TCA']['tt_content']['types'])) {
$GLOBALS['TCA']['tt_content']['types']['qfq_qfq'] = array(
'showitem' => '
--div--;General,
......@@ -50,5 +50,13 @@ if(is_array($GLOBALS['TCA']['tt_content']['types'])) {
]
]
);
$version = \TYPO3\CMS\Core\Utility\VersionNumberUtility::getNumericTypo3Version();
$versionNr = explode('.', $version);
if ($versionNr[0] < 9) {
$GLOBALS['TCA']['tt_content']['types']['qfq_qfq']['columnsOverrides']['bodytext']['config']['format'] = 'sparql';
$GLOBALS['TCA']['tt_content']['types']['qfq_qfq']['columnsOverrides']['bodytext']['constants']['format'] = 'sparql';
}
}
}
\ No newline at end of file
......@@ -15,7 +15,7 @@ $EM_CONF[$_EXTKEY] = array(
'version' => '19.3.2',
'constraints' => [
'depends' => [
'typo3' => '6.0.0-9.2.99',
'typo3' => '6.0.0-9.9.99',
],
'conflicts' => [],
'suggests' => [],
......
......@@ -14,7 +14,3 @@ if (!defined('TYPO3_MODE')) {
'EXT:qfq/ext_icon.png'
);
if(\TYPO3\CMS\Extbase\Utility\VersionNumberUtility::getNumericTypo3Version() > 9) {
$GLOBALS['TCA']['tt_content']['types']['qfq_qfq']['columnsOverrides']['bodytext']['config']['format'] = 'sparql';
$GLOBALS['TCA']['tt_content']['types']['qfq_qfq']['columnsOverrides']['bodytext']['constants']['format'] = 'sparql';
}
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment