Project

General

Profile

Bug #75946

Updated by Markus Klein over 8 years ago

If @\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes()@ \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes() is being used to add custom fields to a table by using the 4th parameter 
 which defines the position the fields will be appended to the end of the "showitem" string nevertheless. 

 An example tca overrides looks like this: 
 <pre> 
 

 $tempCols = [ 
	 'myfield' => array( 
		 'label' => 'MYSUPERFIELD', 
		 'config' => array( 
			 'type' => 'input', 
			 'size' => '20', 
			 'eval' => 'trim' 
		 ) 
	 ), 
 ] 

 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('pages', $tempCols); 
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('pages', 'myfield', '', 'after:title'); 
 </pre>

Back