如何在TYPO3 7.6中增加常量和设置编辑器高度
我们最近将TYPO3版本从6.2更新为7.6,现在t3editor字段太小,无法使用: 它们以前是可重新调整尺寸的,但现在它们是固定高度的,这太小了 有没有一种内置的方法可以让它们重新变大 编辑:我最后向如何在TYPO3 7.6中增加常量和设置编辑器高度,typo3,typoscript,t3editor,Typo3,Typoscript,T3editor,我们最近将TYPO3版本从6.2更新为7.6,现在t3editor字段太小,无法使用: 它们以前是可重新调整尺寸的,但现在它们是固定高度的,这太小了 有没有一种内置的方法可以让它们重新变大 编辑:我最后向typo3/sysext/t3editor/Configuration/TCA/Overrides/sys\u templa添加了rows和wrap值te.php //激活系统模板常量的t3editor if(是数组($GLOBALS['TCA']['sys\u template']['c
typo3/sysext/t3editor/Configuration/TCA/Overrides/sys\u templa添加了rows
和wrap
值te.php
//激活系统模板常量的t3editor
if(是数组($GLOBALS['TCA']['sys\u template']['columns']['constants']['config'])){
$GLOBALS['TCA']['sys_template']['columns']['constants']['config']['renderType']='t3editor';
$GLOBALS['TCA']['sys_template']['columns']['constants']['config']['format']='typoscript';
$GLOBALS['TCA']['sys_template']['columns']['constants']['config']['rows']=20;
$GLOBALS['TCA']['sys_template']['columns']['constants']['config']['wrap']='ON';
}
//激活系统模板配置的T3编辑器
if(是数组($GLOBALS['TCA']['sys\u template']['columns']['config']['config'])){
$GLOBALS['TCA']['sys_template']['columns']['config']['config']['renderType']='t3editor';
$GLOBALS['TCA']['sys_template']['columns']['config']['config']['format']='typoscript';
$GLOBALS['TCA']['sys_template']['columns']['config']['config']['rows']=20;
$GLOBALS['TCA']['sys_template']['columns']['config']['config']['wrap']='ON';
} 一种替代方法是覆盖列配置的
$GLOBALS['TCA']
。对于第一个配置
(即设置
文本区域)、常量
和说明
,您将为系统模板
表配置中的cols
、行
或换行
赋予新值:
$GLOBALS['TCA']
sys_template
columns
config {***setup***}
config
cols = 48
format = typoscript
renderType = t3editor
rows = 10
softref = TStemplate,email[subst],url[subst]
type = text
wrap = OFF
defaultExtras = fix-font : enable-tab
label = LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:systemplate.config
constants
config
cols = 48
format = typoscript
renderType = t3editor
rows = 10
softref = TStemplate,email[subst],url[subst]
type = text
wrap = OFF
defaultExtras = fix-font : enable-tab
label = LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:systemplate.constants
description
config
cols = 48
rows = 5
type = text
defaultExtras = fix-font : enable-tab
label = LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:systemplate.description
TCA参考提供了更多信息,可以告诉您将更改放在哪里。听起来不错,但我不太明白我应该把这个
$GLOBALS['TCA']['sys\u template']['columns']['constants']['config']=['cols'=>48','format'=>'typoscript','renderType'=>'t3editor','rows'=>30','softref'=>'TStemplate,email[subst],url[subst]','type'=>'text','wrap'=>'ON',]
?尝试将其放入typo3/sysext/t3editor/Configuration/TCA/Overrides/sys_template.php
。谢谢,但我认为他们确实需要重新调整编辑器字段的大小。如果将其放入typo3/sysext/t3editor/Configuration/TCA/Overrides/sys_templa在每个源更新中,您丢失了它。使用<代码> TyPO3CONF/ExtTabes。PHP<代码>。在安装工具<代码> [dB] [ ExtababelDealixScript脚本] = ExtPabely.php < /代码>必须设置。@ DaNISAbObs-是的,编辑器字段应该再次变大。考虑向TyPo3核心开发团队建议。
$GLOBALS['TCA']
sys_template
columns
config {***setup***}
config
cols = 48
format = typoscript
renderType = t3editor
rows = 10
softref = TStemplate,email[subst],url[subst]
type = text
wrap = OFF
defaultExtras = fix-font : enable-tab
label = LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:systemplate.config
constants
config
cols = 48
format = typoscript
renderType = t3editor
rows = 10
softref = TStemplate,email[subst],url[subst]
type = text
wrap = OFF
defaultExtras = fix-font : enable-tab
label = LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:systemplate.constants
description
config
cols = 48
rows = 5
type = text
defaultExtras = fix-font : enable-tab
label = LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:systemplate.description