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).
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:
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
Post a Comment