Fluidtypo3 Flux - save in table field

2019-05-25 05:05发布

问题:

I'm trying to develop a frontend extensions with typo3 - fluidcontent. Is it possible to use the bodytext field of the tt_content table instead of the flexform field?

I would like to connect this text element with the tt_content.bodytext field.

<flux:field.text name="bodytext" label="Content" />

回答1:

You can force Flux to save to the record itself, rather than the flexform field, by prefixing your field names with the name of the table that your form applies to. For example, since this implementation is for tt_content, you can name the field tt_content.bodytext and the value will be saved to that field instead.