简体   繁体   English

TYPO3:$ TCA数组['types'] [key]部分

[英]TYPO3: $TCA array ['types'][key] section

I want to know what ; 我想知道什么; and the numbers 2-2-2 in this array means 而这个数组中的数字2-2-2表示

'types' => Array (
        '0' => Array('showitem' =>
            'hidden, type;;;;1-1-1,title;;;;2-2-2,short,bodytext;;2;richtext:rte_transform[flag=rte_enabled|mode=ts];4-4-4,
            --div--;LLL:EXT:tt_news/locallang_tca.xml:tt_news.tabs.special, datetime;;;;2-2-2,archivedate,author;;3;; ;;;;2-2-2,
                keywords;;;;2-2-2,sys_language_uid;;1;;3-3-3,
            --div--;LLL:EXT:tt_news/locallang_tca.xml:tt_news.tabs.media, image;;;;1-1-1,imagecaption;;5;;,links;;;;2-2-2,news_files;;;;4-4-4,
            --div--;LLL:EXT:tt_news/locallang_tca.xml:tt_news.tabs.catAndRels, category;;;;3-3-3,related;;;;3-3-3,
            --div--;LLL:EXT:tt_news/locallang_tca.xml:tt_news.tabs.access, starttime,endtime,fe_group,editlock,
            --div--;LLL:EXT:tt_news/locallang_tca.xml:tt_news.tabs.extended,
            '),

The reason is I want to add a group behind "news_files". 原因是我想在“ news_files”后面添加一个组。 Link to TCA reference . 链接到TCA参考

showitem consists of fields separated by commas ( , ). showitem由以逗号( , )分隔的字段组成。 Each field is defined by 1-5 arguments separated by semicolons ( ; ). 每个字段由1-5个以分号( ; )分隔的参数定义。 The first (mandatory) argument is the field name that can be followed by another 4 extra arguments. 第一个(强制性)参数是字段名称,后跟另外四个额外的参数。 The last argument that you are referring to ("2-2-2") is a form style code which is divided by a hyphen ( - ) into colorscheme , stylescheme and borderscheme . 您要引用的最后一个参数(“ 2-2-2”)是一个表单样式代码 ,该样式代码由连字符( - )划分为colorschemestyleschemeborderscheme

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM