[TYPO3-dev] IRRE and alternative TCA, 'deep'-levels of IRRE

Stefan Geith typo3dev2010.nospam1 at geithware.de
Mon Nov 15 11:52:23 CET 2010


Hi Devs,

is there a way, to use different TCA-Types for Inline-Records,
when they are shown as Inline_records ?

More in Detail:
When I have records, that can be edited directly OR within its Parent 
(where ist is shown as an Inline-Record) it would be sometimes helpfull, 
to have an alternative layout - means another (Set of)
Types-Record(s).
E.G. when edited directly, it makes sense to have all Data
available for editing (including a selectbox for the 'parent');
But when I have this record as an inline record, at least the
selectbox is needles (or even dangerous for 'normal' BE-users).
Sometimes it could be usefull, to only have some of the fields
editable while editing in IRRE-Mode.

If this is not possible now, how could it be implemented ?

a) as another 'types'-Array in TCA, e.g. 'irre_types'=>Array(...)
    that is used, whenever the record is edited with IRRE ?
b) 'types' (and palettes) defined in the relation in the parent,
    like e.g.
       'paragraphs' => array (		
           'label' => 'Paragraphs'
           'config' => array (
               'type' => 'inline',	
               'foreign_table' => 'tx_paragraphs',	

     ===>      'foreign_types' => 'hidden, title, ...',
     ===>      'foreign_palettes' => array(...),


Another example would be a data-model with a very 'deep'
level of inline-records, think of
    county->region->city->street->address->appartments
More than two or three levels of Inline-Records would
be too compley, to work with.
It would be usefull, to have al list of regions within
the country and a list of cities within a region;
BUT when editing the country, it make no sense to
show the cities of the regions on the next level.

So there should be an option to limit the depth of
IRRE, e.g.
       'paragraphs' => array (		
           'label' => 'Paragraphs'
           'config' => array (
               'type' => 'inline',	
               'foreign_table' => 'tx_wsw_paragraphs',	

     ===>      'max_depth' => 2,



I hope, my description is understandable ... ;)

Are there any thougts, ideas, advices, about these issuse?


Thanks,
    Stefan






More information about the TYPO3-dev mailing list