[Typo3-dev] Flexform DS in same table
Kraft Bernhard
kraftb at kraftb.at
Sun Mar 27 16:11:29 CEST 2005
Hallo List,
I'm going to write a extension which extends tt_content by a Flexform.
It will be a new content element.
The speciality is that I want the DS to be stored also in the tt_content
table.
Until now I have the following solution:
I have the flexform field 'tx_myext_flex' which will store the content
of the fields in the flexform ... and the flexform-ds uid-pointer stored
in 'uid' as it should point to the same tt_content element the flexform
field is stored in.
In this a good solution to having the DS in the same record as the form
data XML ?
--------------------------snip-------------------------------
$TCA['tt_content']['columns'][] = array(
'tx_myext_flex' => array(
'exclude' => 1,
'label' => 'MyExt Flex',
'config' => array(
'type' => 'flex',
'ds_pointerField' => 'uid',
'ds_tableField' => 'tt_content:tx_myext_flexds',
),
),
);
$TCA['tt_content']['columns'][] = array(
'tx_myext_flexds' => array(
'exclude' => 0,
'label' => 'MyExt Flex DS',
'config' => array(
'type' => 'passthrough',
),
),
);
--------------------------snip--------------------------------
greets,
Bernhard
More information about the TYPO3-dev
mailing list