简体   繁体   English

显示来自typo3扩展名的一条记录

[英]Show one record from typo3 extension

I have develop a typo3 extension to show some records in a list. 我开发了typo3扩展名以在列表中显示一些记录。 I need to show just one record from this extension in another section of the web page. 我只需要在网页的另一部分中显示此扩展程序的一条记录。 How can select just one record from editor and show that in frontend. 如何从编辑器中仅选择一条记录并在前端显示。

Insert flexform with a selector for your table into the plugin and let editor select record with that. 将具有表格选择器的flexform插入插件,然后让编辑器选择带有该表格的记录。 Then in your action use getByUid method on your repository to fetch the selected record. 然后,在您的操作中,使用存储库上的getByUid方法来获取所选记录。 You might also need to set Storage page on the content element, if your repository respects that. 如果您的存储库遵守此要求,则可能还需要在content元素上设置Storage页面。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM