Created
March 19, 2015 11:40
-
-
Save Skyl0/a7acb713268b92e74e36 to your computer and use it in GitHub Desktop.
1..N beziehung
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$tempColumns = array ( | |
"is_operation" => array ( | |
"exclude" => 0, | |
"label" => "Ist Einsatz?", | |
"config" => Array ( | |
"type" => "check", | |
) | |
), | |
"participating_vehicles" => array ( | |
"exclude" => 0, | |
"label" => "Beteiligte Fahrzeuge", | |
"config" => Array ( | |
"type" => "select", | |
// "internal_type" => "db", | |
// "items" => array( | |
// array("",0), | |
// ), | |
"foreign_table" => "tx_y7fahrzeugdatenbank_domain_model_fahrzeug", | |
"foreign_table_where" => "ORDER BY tx_y7fahrzeugdatenbank_domain_model_fahrzeug.name", | |
"foreign_field" => "ttnews", | |
"allowed" => "tx_y7fahrzeugdatenbank_domain_model_fahrzeug", | |
// "itemsProcFunc" => 'y7_fahrzeugdatenbank\\Classes\\Controller\\FahrzeugController->listAction', | |
"autoSizeMax" => 10, | |
"minitems" => 0, | |
"maxitems" => 9999, | |
// "appearance" => Array ( | |
// "collapseAll" => 0, | |
// "expandSingle" => 1, | |
// ), | |
) | |
), | |
); | |
// debug($tempColumns); | |
// $logger->info("tempColumns: ",$tempColumns); | |
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns("tt_news",$tempColumns,1); | |
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes("tt_news", | |
"is_operation;;;;1-1-1",'','after:short' | |
); | |
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes("tt_news", | |
"participating_vehicles;;;;2-2-2",'','after:is_operation' | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment