Fluidtypo3助焊剂-保存在表格字段中 [英] Fluidtypo3 Flux - save in table field

查看:79
本文介绍了Fluidtypo3助焊剂-保存在表格字段中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用typo3-fluidcontent开发前端扩展.是否可以使用tt_content表的bodytext字段而不是flexform字段?

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?

我想将此文本元素与tt_content.bodytext字段连接.

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

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

推荐答案

您可以通过在字段名称前添加字段名称作为前缀来强制Flux保存到记录本身,而不是flexform字段.表格适用于.例如,由于此实现是针对tt_content的,因此您可以将字段命名为tt_content.bodytext,然后将值保存到该字段中.

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.

这篇关于Fluidtypo3助焊剂-保存在表格字段中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆