2012-03-28 166 views
1

当我建立与快速启动一个新的扩展,我自定义如何与文件ext_tables.php后端,使用该行:自定义字段

$TCA['tt_content']['types'][$_EXTKEY . '_pi1']['showitem'] = 'CType, header,media;Images'; 

我在哪里可以添加新的领域,甚至重命名它们。但有时我觉得奇怪sufixes到每一个控制,在后端周围的控制会出现其他的东西像场,例如,“媒体;;;; 1-1-1”。

我怎么能知道这些代码是什么意思?

回答

2

看一看的TCA Documentation有类型截面的描述($ TCA [“tt_content”] [“类型”])。在有一个表,其中[“showitem”]进行说明。

Part 1: Field name reference (Required!) 

Part 2: Alternative field label (string or LLL reference) 

Part 3: Palette number (referring to an entry in the "palettes" section). 

Part 4: Special configuration (split by colon (:)), e.g. 'nowrap' and 'richtext[(list of keys or *)]' (see “Additional $TCA features”) 

Part 5: Form style codes (see “Visual style of TCEforms”) 
+0

哇,这似乎真的很复杂...有没有更简单的方法来配置它们? :S – 2012-03-28 15:10:26

+0

你可以忽略它。相反,“图像;;;; 1-1-1”使用“图像”。 – maholtz 2012-03-28 15:17:37