Skip to content
Snippets Groups Projects
Commit 8db023ad authored by bbaer's avatar bbaer
Browse files

version check

parent 16aad6be
No related branches found
No related tags found
1 merge request!138F6334 t3 editor
Pipeline #1820 passed
<?php
/**
* Created by PhpStorm.
* User: bbaer
* Date: 5/3/19
* Time: 6:31 PM
*/
return [
'edit/matchbrackets' => [
'module' => 'cm/addon/edit/matchbrackets',
'options' => [
'matchBrackets' => true,
],
],
'mode/overlay' => [
'module' => 'cm/addon/mode/overlay',
'modes' => ['sql'],
],
'hint/sql-hint' => [
'module' => 'cm/addon/hint/sql-hint',
'modes' => ['sql'],
],
];
<?php
/**
* Created by PhpStorm.
* User: bbaer
* Date: 5/3/19
* Time: 6:30 PM
*/
return [
'sql' => [
'module' => 'cm/mode/sql/sql',
'extensions' => ['sql'],
],
'html' => [
'module' => 'cm/mode/htmlmixed/htmlmixed',
'extensions' => ['htm', 'html'],
],
];
...@@ -50,4 +50,8 @@ if(is_array($GLOBALS['TCA']['tt_content']['types'])) { ...@@ -50,4 +50,8 @@ if(is_array($GLOBALS['TCA']['tt_content']['types'])) {
] ]
] ]
); );
if(\TYPO3\CMS\Extbase\Utility\VersionNumberUtility::getNumericTypo3Version() > 9) {
$GLOBALS['TCA']['tt_content']['types']['qfq_qfq']['columnsOverrides']['bodytext']['config']['format'] = 'sparql';
}
} }
\ No newline at end of file
...@@ -13,37 +13,3 @@ if (!defined('TYPO3_MODE')) { ...@@ -13,37 +13,3 @@ if (!defined('TYPO3_MODE')) {
'QFQ Element', 'QFQ Element',
'EXT:qfq/ext_icon.png' 'EXT:qfq/ext_icon.png'
); );
/*
* The type name is generated by combining the extension key and plugin name, all lowercase and concatenated with `_'
*/
$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';
$GLOBALS['TCA']['tt_content']['palettes']['layoutpalette2']['showitem'] = 'layout, header_layout';
$GLOBALS['TCA']['tt_content']['palettes']['spacearound']['showitem'] = 'spaceBefore, spaceAfter';
$GLOBALS['TCA']['tt_content']['types']['qfq_qfq'] = array(
'showitem' => '
--div--;General,
--palette--;;introheader,
custom,
bodytext;Code:;;nowrap,
--div--;Access,
hidden, fe_group, deleted, --palette--;;startendtime,
--div--;Appearance,
--palette--;;layoutpalette1,
--palette--;;layoutpalette2,
--palette--;;spacearound,
linkToTop, section_frame, sectionIndex',
'columnsOverrides' => [
'bodytext' => [
'config' => [
'renderType' => 't3editor',
'format' => 'sparql',
'rows' => 100
]
]
]
);
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment