Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

Share this Page URL
Help

6. HowTos > 6.5 Eigene Wizards zu Feldern hinzufügen - Pg. 318

KAPITEL 6 HowTos Listing 6.19: Auszug aus der Funktion selectItemsTCA, die von itemsProcFunc aufgerufen wird function selectItemsTCA($params) { global $TCA; $table = $params['config']['itemsProcFunc_config']['table']; if ($table) { $indexField = $params['config']['itemsProcFunc_config']['indexField']; $indexField = $indexField ? $indexField : 'uid'; $lang = strtolower(tx_staticinfotables_div::getCurrentLanguage()); $titleFields = tx_staticinfotables_div::getTCAlabelField($table, TRUE, $lang); #[...] if ($params['config']['itemsProcFunc_config']['prependHotlist']) { #[...] foreach ($rows as $index => $title) { $params['items'][] = array($title, $index, ''); $cnt++; } if($cnt && !$params['config']['itemsProcFunc_config']['hotlist Only']) { $params['items'][] = array('--------------', '', ''); }