[TYPO3-english] Extbase FE form with inline relation
Jan Bednarik
info at bednarik.org
Wed Oct 14 20:47:05 CEST 2015
Hi,
actually, I've found a way. I'm dynamically creating inputs with name
tx_extkey[newObj][X][title] (X = 1..x) and then in
initializeCreateAction I have
$propertyMappingConfiguration->forProperty('newObj')->allowAllProperties();
$propertyMappingConfiguration->allowModificationForSubProperty('newObj');
$propertyMappingConfiguration->allowProperties('pedagog');
foreach ($newZUS['newObj'] as $positionIndex =>
$positionPropertyArray) {
$propertyPath = 'newObj.'.($positionIndex);
$propertyMappingConfiguration->forProperty($propertyPath)->allowAllProperties();
$propertyMappingConfiguration->allowCreationForSubProperty($propertyPath);
$propertyMappingConfiguration->allowModificationForSubProperty($propertyPath);
}
This creates the relation.
Jan
Dne 12. 10. 2015 v 8:25 bernd wilke napsal(a):
> Am 11.10.15 um 22:28 schrieb Jan Bednarik:
>> Please read my question again. I need frontend insert/update form with
>> inline relation. Ext builder doesn't give you that.
>>
> your initial posting does not state clearly that you want an create/edit
> form in the FE.
>
> for that you might use your suggestion, you also may use the uid as
> index for the inline records as far as the data is edited.
> but I think you will have to do some programming to map those data to
> the repository (and the database records)
>
> maybe it will be possible to do it automaticaly with the new announced
> form handling in 7LTS
>
>
> bernd
More information about the TYPO3-english
mailing list