[Typo3-dev] Confusion with new CType generated by kickstarter

Dmitry Dulepov typo3 at fm-world.ru
Fri Aug 12 16:16:02 CEST 2005


Hi!

I fall into problem trying to make a new CType. The problem is with
"showitem" entry in TCA array.

This entry consists from a number of comma-separated values. Each value
consists from the semicolon-separated parts. According to the
description in "Typo3 Core APIs":
- Part 1: Fieldname reference (Required!)
- Part 2: Alternative fieldlabel (LS)
- Part 3: Palette number (referring to an entry in the "palettes" section).
- Part 4: Special configuration (splitted by colon ( : )), eg. 'nowrap'
and 'richtext[(list of keys or *)]' (see section later)
- Part 5: Form style codes (see section later)

Kickstarter creates the following entry for my new CType:

$TCA["tt_content"]["types"][$_EXTKEY."_pi1"]["showitem"]=
	"CType;;4;button;1-1-1, header;;3;;2-2-2";

So if I start decoding the first value:
- part 1: CType = ok
- part 2: absent = ok
- part 3: 4 = ok
- part 4: button = not ok, no such special configuration!
- part 5: 1-1-1 = not described anyware, unclear!

Part 4 must be one of the following (according to "Typo3 Core APIs"):
- nowrap
- richtext
- rte_transform
- rte_only
- static_write
- wizards.
There is no such thing as "button"!

Part 5 is totaly unclear. Typo3 Core APIs document mentions "Form style
codes (see section later)" (see 4.5.12 in this document). However there
is no any "section later" that describes these codes. This is the most
mysterious thing...

So questions popped up:
- what does that "button" mean? Undocumented value?
- where can I find a description of "Form style codes"? Seems that they
are not documented as well.

Thanks in advance for any help that you can provide...

Dmitry.




More information about the TYPO3-dev mailing list