[TYPO3-core] RFC: Introducing TCA 'behaviour'

Oliver Hader oh at inpublica.de
Fri Feb 1 15:33:22 CET 2008


Hi,

this is a general questing concerning new TCA properties.

Imagine the following:
$TCA['tx_myext_table']['columns']['field'] = array(
   'config' => array(
     'type' => 'inline',
     'foreign_table' => 'tx_myext_child',
     'appearance' => array(
       ...
     ),
     'behaviour' => array(
       'disableMovingChildrenWithParent' => 1,
       'localizationMode' => 'select',
       'localizeChildrenAtParentLocalization' => 1,
     )
   ),
);

In IRRE there's already the 'appearance' part and the configuration gets 
extended by a similar 'behaviour' part. The behaviour defines special 
actions that should happen in a special situation (e.g. localization, 
moving records or whatever).

The regular, general required settings go as usual to 'config':
-> config/type, config/foreign_table, etc.

The settings that only affect the view go to 'config/appearance':
-> config/appearance/showAllLocalizationLink, etc.

The settings that define a behaviour in special situations go to 
'config/behaviour':
-> config/behaviour/localizationMode, etc.

I dont't want to change existing properties, but integrate new 
properties to fit this scheme. So, what do you think?

olly
-- 
Oliver Hader
http://inpublica.de/


More information about the TYPO3-team-core mailing list