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 custom headers in TYPO3 backend


#Add this to page resource
Set below TypoScript Configuration in page edit porperty.

TCEFORM.tt_content.header_layout {
    addItems {
        10 = Gray Header
        11 = Orange Header
        12 = Red Header
    }
}
Custom header resource

Custom header resource

After set above TypoScript Configuration in page edit porperty. It will display in your “Type”
It will look like in below image.

Custom header in typo3

Custom header in typo3

If you want to wrap that section element with your HTML then you have to set below TypoScript

lib.stdheader.10.10 < lib.stdheader.10.1
lib.stdheader.10.10 {
  dataWrap = >h1 class="gray_header"<|>/h1<
}

lib.stdheader.10.11 < lib.stdheader.10.1
lib.stdheader.10.11 {
  dataWrap = <h1 class="orange_header">|</h1>
}

lib.stdheader.10.12 < lib.stdheader.10.1
lib.stdheader.10.12 {
  dataWrap = <h1 class="red_header">|</h1>
}

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

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

Backend search not working for extensions in TYPO3 4.7 version


 
In previous TYPO3 versions, there were several problems with Backend search:

Basically, the ‘ctrl’ section of TCA is extended with a new option:

'searchFields' => 'username,email'

Edit ext_tables.php file in typo3conf/ext/yourext directory, find your table, and add to its ctrl section searchFields property as comma separated list of fields to search in:

$TCA['tx_yourext_table'] = array(
    'ctrl' => array(
        'title' => 'Title of your table',
        'label' => 'title',
        'tstamp' => 'tstamp',
        'crdate' => 'crdate',
         // etc...
        'searchFields' => 'title, other_field, yet_other_field',
    ),
);

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

How to add Section Frame and wrap section frame in TYPO3 backend


 
Add option in “Indentation and Frames”

If you want to add option in “Indentation and Frames” (section frame) then first you have to set TypoScript Configuration in page edit porperty

TCEFORM.tt_content.section_frame {
     addItems.101 = Contact Tabs
}  

After set above TypoScript Configuration in page edit porperty. It will display in your “Indentation and Frames”
It will look like in below image.

Section_frame

Section_frame

If you want to wrap that section element with your HTML then you have to set below TypoScript

tt_content.stdWrap.innerWrap.cObject = CASE
tt_content.stdWrap.innerWrap.cObject {
      key.field = section_frame
      101 = TEXT
      101.value = <div class="contact-tabs">|</div>    
} 

**Note : 101 is array key. you have to set common in page edit property and in TypoScript Configuration

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

How to restrict access of TYPO3 backend


 
IF you want to restrict TYPO3 backend side then you have to set below line in your “localconf.php” file.

$TYPO3_CONF_VARS['BE']['IPmaskList'] = 'XXX.X.XXX.XXX,XX.XXX.XX.XXX,XX.XXX.XXX.XX';

XXX.X.XXX.XXX is stand for IP address.

You can set more than one IP address by comma seprated.

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

Display language wise record in backend side of typo3 + tca file


 
For display language wise record in backend side. for that you have to set below line in your tca.php file.

sys_language_uid = ###REC_FIELD_sys_language_uid###

That condition you have to set in your where condition.

'foreign_table_where' => ' sys_language_uid = ###REC_FIELD_sys_language_uid### ORDER BY tx_property_category.uid',	

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