[英]Dynamic UID to edit the current news item
I use "Frontend_Editing" extension on TYPO3, to edit News items from Frontend. 我在TYPO3上使用“ Frontend_Editing”扩展名来编辑Frontend中的新闻项目。
How can i edit this code to change uid
with the value of the current News item : 我如何编辑此代码以使用当前新闻项的值更改
uid
:
<core:contentEditable table="tx_news_domain_model_news" uid="9">
<f:render section="content" />
</core:contentEditable>
Did you have a look at the documentation of EXT:frontend_editing? 您是否看过EXT:frontend_editing的文档 ?
A full example for inline editing of a certain field looks like this: 内联编辑特定字段的完整示例如下所示:
<core:contentEditable table="{item.table}" field="{item.field}" uid="{item.uid}">
{item.bodytext}
</core:contentEditable>
I found the solution uid="{item.uid}"
need to be uid="{newsItem.uid}"
我发现解决方案
uid="{item.uid}"
需要为uid="{newsItem.uid}"
So the code is : 所以代码是:
<core:contentEditable table="tx_news_domain_model_news" uid="{newsItem.uid}">
<f:render section="content" />
</core:contentEditable>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.