Bug #32332
closedthe new "t3lib_extMgm::addNewFieldsToAllPalettes" is still buggy
100%
Description
I noticed that I still cannot use the new introduced helper-function "t3lib_extMgm::addNewFieldsToAllPalettes" mentioned to be available for TYPO3 4.6.0 (and above).
I still get a Fatal PHP-Error that this function isn't available, so that dirty-hacks in ext_tables.php are necessarily to gain the same result.
Here is a dummy code that I tried (produces Fatal Error in PHP):
t3lib_extMgm::addNewFieldsToAllPalettes('tt_address', 2, 'tx_mycustomfield', 'after:company');
I would expect the field tx_mycustomfield to be added to the existing palette-definition number 2 of EXT:tt_address.
The result ends in a Fatal PHP-Error mentioning that this function is not available.
Updated by Björn Pedersen almost 13 years ago
public static function addFieldsToAllPalettesOfField($table, $field, $addFields, $insertionPosition = '') { public static function addFieldsToPalette($table, $palette, $addFields, $insertionPosition = '')
These are the 2 functions defined. From where did you get the name 'addNewFieldsToAllPalettes' ?
Updated by Gabriel Kaufmann / Typoworx NewMedia almost 13 years ago
- % Done changed from 0 to 100
Hello Björn,
thanks for your very quick response. Your Method solved my problem. Don't ask where I got the wrong "Example" for this task. I recently found it in any news-feed somewhere (don't remember where) and didn't figure out the working Method yet on Google.
SOLVED!
Updated by Michael Stucki almost 13 years ago
- Status changed from New to Resolved
Alright, so I'll close this.