php - Typo3/TCA create new tab with fields of another tab inside -


i need in typo3/tca. im trying modify backend layout of extension, cant work.

i try make context of "firma" new tab (see image).

firma1

i fugured out context of "firma" defined in tca.php in $tca['tx_jobsystem_domain_model_job'] column 'address'. (l. 328 ):

 'address' => array(         'label'  => $languagefile . ':tx_jobsystem_domain_model_job.address',         'config' => array(             'type'           => 'inline',             'foreign_table'  => 'tt_address',                           #'foreign_field'  => 'uid',             'symmetric_field' => 'address',                 'appearance'     => array(                 'collapseall'  => true,                 'expandsingle' => true             )                    )     ), 

i did copy $tca['tx_jobsystem_domain_model_advertisement'] @ line 116 , used @ l. 272, tabs defined:

'0' => array('showitem' => 'hidden,id, ... visits,--div--;anzeigendetails,title,job,--div--;firma,address;;;richtext:nowrap;'), 

this get:

firma2

sourcecode: tca.php www.pastebin.com/a9egzsqi

also ext_tables.php: www.pastebin.com/rwgbw3qg

can me ?

1) comments basic setup:

the problem is, have 3 things here:

a) advertisement

b) job description (connected advertisement)

c) company (firma) (connected job)

the relations following:

a) ---> b)      ---> c) 

so want display c) in a) in new tab.

unfortunately, possible userfunc handles selects company of job , returns field.

2) comments change:

you have change data model like:

a) ---> b) ---> c) 

you can not grab "3rd level inline object" connected throught "2nd level inline object" 1st level.

you second code not working, because not have connection between company , advertisement. need change ext_tables.sql , domains , on. lost connection between job , company.


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -