我正在编写自己的扩展程序。现在我喜欢我的textarea来编辑我的RTE。我尝试了一些来自网络的配置,但我无法使其正常工作..
我的TCA的一部分:
'tasks' => array(
'exclude' => 0,
'label' => 'LLL:EXT:jobs/Resources/Private/Language/locallang_db.xlf:tx_jobs_domain_model_joboffer.tasks',
'config' => array(
'type' => 'text',
'cols' => 40,
'rows' => 15
),
'defaultExtras' => 'richtext[]'
),
喜欢这里:http://docs.typo3.org/typo3cms/CoreApiReference/Rte/InTheBackend/Index.html 不工作:(
我也尝试过与此类似:http://typo3blogger.de/der-t3editor-im-tca/并且也无法使其正常工作。在cms我总是看到简单的textarea。有任何想法如何插入?
我的TCA脚本:
'types' => array(
'1' => array('showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, hidden;;1, add_date, reference_number, position, link_url, localization, title, requirements;;;richtext:rte_transform[mode=ts_links], tasks;;;richtext::rte_transform[flag=rte_disabled|mode=ts_css], offer;;;richtext:rte_transform[mode=ts_links], category, --div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access, starttime, endtime'),
),
和列:
'tasks' => array(
'exclude' => 0,
'label' => 'LLL:EXT:jobs/Resources/Private/Language/locallang_db.xlf:tx_jobs_domain_model_joboffer.tasks',
'config' => array(
'type' => 'text',
'cols' => 40,
'rows' => 15
),
'defaultExtras' => 'richtext[]'
),
答案 0 :(得分:1)
如果你的字段名为 tasks ,则需要在* showitem **部分中输入以下代码:
[infx1150@tardis ~]$ finderr 150
-150 The limits of the IBM Informix Demo Version have been exceeded.
You are using a demonstration version of the database server. This
version has severe limits on the number of tables and the size of the
tables that it can manage. The current operation causes it to exceed
one of those limits. Contact your IBM representative about buying
the production version of the software.
[infx1150@tardis ~]$ finderr 746
-746 message-string
You supply message-string for this message. You can apply this message
to error conditions that you specify in an SPL routine. The corrective
action for this error depends on the condition that caused it. You, the user,
define both the condition and the message text.
[infx1150@tardis ~]$