Project

General

Profile

Actions

Bug #32332

closed

the new "t3lib_extMgm::addNewFieldsToAllPalettes" is still buggy

Added by Gabriel Kaufmann / Typoworx NewMedia almost 13 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2011-12-06
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
4.6
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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.

Actions #1

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' ?

Actions #2

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!

Actions #3

Updated by Michael Stucki almost 13 years ago

  • Status changed from New to Resolved

Alright, so I'll close this.

Actions #4

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF