How to display table content in tab of typo3 extension


 
For display table content in tab of custom extension.

First you have to set “‘dividers2tabs’ => true” in exe_table.php file.

   'dividers2tabs' => true,

Dividers 2 tabs

Dividers 2 tabs


then after you have to modify tca.php file.

below code is original code of Tca file

'types' => array (
	'0' => array('showitem' => 'hidden;;1;;1-1-1, title;;;;2-2-2, images;;;;3-3-3, logo, small_image, address, place, types ')	
),

For set tab you have to add “–div–;Tab1,” before field name.

“Tab1” is stand for title of the tab. Below code is modified code

'types' => array (
	'0' => array('showitem' => '--div--;Tab1,hidden;;1;;1-1-1, title;;;;2-2-2, --div--;Tab2,images;;;;3-3-3, --div--;Tab3,logo, small_image,--div--;Tab4, address, place, --div--;Tab5,types ')
),
Tab in TCA

Tab in TCA

It will look like below image

TCA, Extension, table

TCA, Extension, table

I hope it will help you.. Good luck 🙂

If you have any queries, please do not hesitate to contact me at Jainish Senjaliya

Advertisements

How to add color picker in TCA of TYPO3


 
For add color picker. you have to add below script on yout tca file.

‘config’ => array (
   ‘type’ => ‘input’,
   ‘size’ => 10,
   ‘wizards’ => array(
       ‘_PADDING’ => 2,
       ‘color’ => array(
           ‘title’ => ‘Color:’,
           ‘type’ => ‘colorbox’,
           ‘dim’ => ’16×12',
           ‘tableStyle’ => ‘border:solid 1px black;’,
           ‘script’ => ‘wizard_colorpicker.php’,
           ‘JSopenParams’ => ‘height=300,width=250,status=0,menubar=0,scrollbars=1',
      ),
   ),
)

If you have any queries, please do not hesitate to contact me at Jainish Senjaliya