Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
02ecaf17
Commit
02ecaf17
authored
May 03, 2019
by
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
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
extension/Configuration/TCA/tt_content.php
View file @
02ecaf17
...
...
@@ -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
extension/ext_emconf.php
View file @
02ecaf17
...
...
@@ -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'
=>
[],
...
...
extension/ext_tables.php
View file @
02ecaf17
...
...
@@ -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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment