2012-03-28 167 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