【发布时间】:2026-02-01 18:30:01
【问题描述】:
我已经定义了自定义实体类型“匹配”,它是后端可编辑的,一切都按预期工作。
现在我需要一种方法来查询该类型的内容。智能内容字段类型可以做到这一点吗?我希望像这样的 xml 可以解决问题:
<property name="matches" type="smart_content">
<!-- @see https://docs.sulu.io/en/2.2/reference/content-types/smart_content.html -->
<meta>
<title lang="en">Matches</title>
<title lang="de">Streichhölzer</title>
</meta>
<params>
<param name="provider" value="lists"/>
<param name="types" value="matchevents"/>
<param name="max_per_page" value="5"/>
<param name="page_parameter" value="m"/>
</params>
</property>
但这并没有帮助。可以用“smart_content”字段类型来完成吗?我是的 - 怎么样?如果没有 - 实现这一目标的最佳方法是什么?
【问题讨论】: