[TYPO3] tca mm wizards setting params using field values from current table
R. Germershausen
rg at macina.com
Thu Jul 19 12:45:12 CEST 2007
dear list,
i am looking for a way to modify the tca from my extenion to send the
value of a field from the current table as param.
"media" => Array (
"exclude" => 0,
"label" =>
"LLL:EXT:vim_projects/locallang_db.xml:tx_vimprojects_projects.media",
"config" => Array (
"type" => "select",
"foreign_table" => "tx_vimprojects_media",
"foreign_table_where" => "ORDER BY tx_vimprojects_media.uid",
"size" => 25,
"minitems" => 0,
"maxitems" => 100,
"MM" => "tx_vimprojects_projects_media_mm",
"wizards" => Array(
"_PADDING" => 2,
"_VERTICAL" => 1,
"add" => Array(
"type" => "script",
"title" => "Create new record",
"icon" => "add.gif",
"params" => Array(
"test" => "###FIELD_TITLE###",
"table"=>"tx_vimprojects_media",
"pid" => "###CURRENT_PID###",
"setValue" => "prepend"
),
"script" => "wizard_add.php",
),
"list" => Array(
"type" => "script",
"title" => "List",
"icon" => "list.gif",
"params" => Array(
"table"=>"tx_vimprojects_media",
"pid" => "###CURRENT_PID###",
),
"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",
),
),
)
),
so i want to replace "test" => "###FIELD_TITLE###", test with the
"title" field of the table where the wizard is started from. i try to
use this field on the media table as internal title. anyone has every
done this?
More information about the TYPO3-english
mailing list