[Typo3-dev] t3lib_extMgm::addToTCAtypes ?

"Kasper Skårhøj" kasper at typo3.com
Tue Sep 30 17:58:13 CEST 2003


OK, done



God bless

- kasper

*********** REPLY SEPARATOR  ***********

On 30-09-2003 at 15:26 Martin Kutschker wrote:

>Hi!
>
>I can easily add a field to all pages. How about adding this method?
>
>function addToTCAtypes($table,$types,$str) {
>global $TCA;
>$str = trim($str);
>t3lib_div::loadTCA($table); 
>if ($str && is_array($TCA[$table]) &&
>is_array($TCA[$table]['types'])) {
>reset($TCA[$table]['types']);
>$types = split(',',$types);
>while(list(,$v)=each($types)) {
>$TCA[$table]['types'][$v]['showitem'].=', '.$str;
>}
>}
>}
>
>Of course it would be nice if the Extension Kickstarter had an option to
>restrict a new field to specific (page) types.
>
>Masi 
>
>_______________________________________________
>Typo3-dev mailing list
>Typo3-dev at lists.netfielders.de
>http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev



God bless

- kasper


- kasper
-------------------- o ---------------------
>>>    In God I trust - others pay cash!     <<<
Check www.typo3.com







More information about the TYPO3-dev mailing list