Danke für Dein Beispiel. Ich frage die Werte aus einer anderen Tabelle ab, deshalb gibt es kein item so wie in Deinem Beispiel. Hier mal ein Auszug aus der TCA Definition:
"standort" => Array (
"exclude" => 1,
"label" => "LLL:EXT:sg_jobs/locallang_db.xml:tx_sgjobs_daten.standort",
"config" => Array (
"type" => "select",
"foreign_table" => "tx_sgjobs_standort",
"foreign_table_where" => "ORDER BY tx_sgjobs_standort.name",
"size" => 8,
"minitems" => 1,
"maxitems" => 1,
"wizards" => Array(
"_PADDING" => 2,
"_VERTICAL" => 1,
"add" => Array(
"type" => "script",
"title" => "Create new record",
"icon" => "add.gif",
"params" => Array(
"table"=>"tx_sgjobs_standort",
//"pid" => "###CURRENT_PID###",
"pid" => $standortPID,
"setValue" => "prepend"
),
"script" => "wizard_add.php",
),
"list" => Array(
"type" => "script",
"title" => "List",
"icon" => "list.gif",
"params" => Array(
"table"=>"tx_sgjobs_standort",
//"pid" => "###CURRENT_PID###",
"pid" => $standortPID,
),
"script" => "wizard_list.php",
),
"edit" => Array(
"type" => "popup",
"title" => "Edit",
"script" => "wizard_edit.php",
"popup_onlyOpenIfSelected" => 1,
"icon" => "edit2.gif",
"JSopenParams" => "height=350,width=580,status=0,menubar=0,scrollbars=1",
),
),
)
),
Ich hoffe, Du hast für dieses Beispiel auch eine Idee 🙂 ?
Danke schon mal!