---
title: "TCA.php - Auswahlbox"
url: "https://www.typo3.net/d/56943-tcaphp-auswahlbox"
source: "typo3.net"
tags: ["Extensions","Entwicklung","Frage","TCA"]
created: "2007-01-29"
last_reply: "2007-01-29"
replies: 4
solved: false
page: 1
pages: 1
lang: "de"
---

# TCA.php - Auswahlbox

Extensions › Entwicklung · 4 Antworten · gestartet 2007-01-29

## Eröffnungsbeitrag

**thE_iNviNciblE** · 2007-01-29 · [Beitrag #1](https://www.typo3.net/d/56943-tcaphp-auswahlbox/1)

TCA.php - Auswahlbox

```php
	"data_typ" => Array (		
			"exclude" => 1,	
			"label" => "LLL:EXT:et_contact_new/locallang_db.xml:tx_etcontactnew_fields.data_typ",		
			"config" => Array (
                "type" => "data_typ",
			    "eval" => "required",
				"type" => "select",
				"items" => Array (
					Array("LLL:EXT:et_contact_new/locallang_db.xml:tx_etcontactnew_fields.data_typ.I.0", "0"),
					Array("LLL:EXT:et_contact_new/locallang_db.xml:tx_etcontactnew_fields.data_typ.I.1", "1"),
					Array("LLL:EXT:et_contact_new/locallang_db.xml:tx_etcontactnew_fields.data_typ.I.2", "2"),
					Array("LLL:EXT:et_contact_new/locallang_db.xml:tx_etcontactnew_fields.data_typ.I.3", "3"),
					Array("LLL:EXT:et_contact_new/locallang_db.xml:tx_etcontactnew_fields.data_typ.I.4", "4"),
					Array("LLL:EXT:et_contact_new/locallang_db.xml:tx_etcontactnew_fields.data_typ.I.5", "5"),
					Array("LLL:EXT:et_contact_new/locallang_db.xml:tx_etcontactnew_fields.data_typ.I.6", "6"),
					Array("LLL:EXT:et_contact_new/locallang_db.xml:tx_etcontactnew_fields.data_typ.I.7", "7"),
					Array("LLL:EXT:et_contact_new/locallang_db.xml:tx_etcontactnew_fields.data_typ.I.8", "8"),
					Array("LLL:EXT:et_contact_new/locallang_db.xml:tx_etcontactnew_fields.data_typ.I.9", "9"),
					Array("LLL:EXT:et_contact_new/locallang_db.xml:tx_etcontactnew_fields.data_typ.I.10", "10"),
					Array("LLL:EXT:et_contact_new/locallang_db.xml:tx_etcontactnew_fields.data_typ.I.11", "11"),
					Array("LLL:EXT:et_contact_new/locallang_db.xml:tx_etcontactnew_fields.data_typ.I.12", "12"),												Array("LLL:EXT:et_contact_new/locallang_db.xml:tx_etcontactnew_fields.data_typ.I.13", "13"),												Array("LLL:EXT:et_contact_new/locallang_db.xml:tx_etcontactnew_fields.data_typ.I.14", "14"),												Array("LLL:EXT:et_contact_new/locallang_db.xml:tx_etcontactnew_fields.data_typ.I.15", "15"),
				),
				"size" => 10,	
				"maxitems" => 1,
			)
		),
```

wie bekomme ich es hin, dass wenn in dieser auswahlliste die seite neu geladen wird um mir andere formularelemente einzublenden und andere auszublenden?

```php
	"types"	=> array (
			"0" => array("showitem" => "hidden;;1;;1-1-1, title;;;;2-2-2, field_outputname;;;;3-3-3, data_typ, default_value, input_length, output_length, mandatoryfield, show_output"),
		"1" => array("showitem" => "hidden;;1, data_typ, default_value, mandatoryfield"),
	),
```

wieso funktioniert es nicht wenn ich ""type" => "select"" auf type=type stelle.. ?

<https://docs.typo3.org/m/typo3/reference-tca/main/en-us/Index.html>

(['types'][key] section) -> fast ganz unten auf der seite...

## Antworten

### [#2](https://www.typo3.net/d/56943-tcaphp-auswahlbox/2) · just2b · 2007-01-29

IMO geht das nicht

und es gibt halt keinen type "type"

georg

### [#3](https://www.typo3.net/d/56943-tcaphp-auswahlbox/3) · thE_iNviNciblE · 2007-01-29

```php
"data_typ" => Array (		
		    "type" => "type",
			"label" => "LLL:EXT:et_contact_new/locallang_db.xml:tx_etcontactnew_fields.data_typ",		
			"type" => Array(
                "exclude" => 1,	
			    "config" => Array (
			         "eval" => "required",
				     "type" => "select",
				     "items" => Array (
					       Array("LLL:EXT:et_contact_new/locallang_db.xml:tx_etcontactnew_fields.data_typ.I.0", "0"),
					       Array("LLL:EXT:et_contact_new/locallang_db.xml:tx_etcontactnew_fields.data_typ.I.1", "1"),
					       Array("LLL:EXT:et_contact_new/locallang_db.xml:tx_etcontactnew_fields.data_typ.I.2", "2"),
					       Array("LLL:EXT:et_contact_new/locallang_db.xml:tx_etcontactnew_fields.data_typ.I.3", "3"),
					       Array("LLL:EXT:et_contact_new/locallang_db.xml:tx_etcontactnew_fields.data_typ.I.4", "4"),
					       Array("LLL:EXT:et_contact_new/locallang_db.xml:tx_etcontactnew_fields.data_typ.I.5", "5"),
					       Array("LLL:EXT:et_contact_new/locallang_db.xml:tx_etcontactnew_fields.data_typ.I.6", "6"),
					       Array("LLL:EXT:et_contact_new/locallang_db.xml:tx_etcontactnew_fields.data_typ.I.7", "7"),
					       Array("LLL:EXT:et_contact_new/locallang_db.xml:tx_etcontactnew_fields.data_typ.I.8", "8"),
					       Array("LLL:EXT:et_contact_new/locallang_db.xml:tx_etcontactnew_fields.data_typ.I.9", "9"),
					       Array("LLL:EXT:et_contact_new/locallang_db.xml:tx_etcontactnew_fields.data_typ.I.10", "10"),
					       Array("LLL:EXT:et_contact_new/locallang_db.xml:tx_etcontactnew_fields.data_typ.I.11", "11"),
					       Array("LLL:EXT:et_contact_new/locallang_db.xml:tx_etcontactnew_fields.data_typ.I.12", "12"),												   Array("LLL:EXT:et_contact_new/locallang_db.xml:tx_etcontactnew_fields.data_typ.I.13", "13"),												   Array("LLL:EXT:et_contact_new/locallang_db.xml:tx_etcontactnew_fields.data_typ.I.14", "14"),												   Array("LLL:EXT:et_contact_new/locallang_db.xml:tx_etcontactnew_fields.data_typ.I.15", "15"),
				   ),
				"size" => 10,	
				"maxitems" => 1,
			  )
			),
		),
```

also laut tca.php doku gibt es "types" => "types"... weiß jemand wie das funktioniert ?

### [#4](https://www.typo3.net/d/56943-tcaphp-auswahlbox/4) · just2b · 2007-01-29

sorry jetzt auch entdeckt, ich nehm alles zzrück. weiß aber nicht wie es funktioniert - nie gemacht

georg

### [#5](https://www.typo3.net/d/56943-tcaphp-auswahlbox/5) · thE_iNviNciblE · 2007-01-29

ja, man muss anscheind noch die ext_tables.php anpassen und dort "type" definieren sonst klappt es nicht... "unkown  type"

---

Quelle: „TCA.php - Auswahlbox“, typo3.net, https://www.typo3.net/d/56943-tcaphp-auswahlbox
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
