我有两个频道,活动和新闻。两者都分配了相同的类别组(国际,国家,摇滚等)。我需要显示与事件的单个条目中的事件属于同一类别的新闻条目窗口小部件。像
这样的东西{exp:channel:entries channel="event" require_entry="yes"}
{!-- here the event information is displayed --}
<div class="widget"><h2>News</h2>
{exp:channel:entries channel="news" dynamic="no" category="????"}
{/exp:channel:entries}
</div>
{/exp:channel:entries}
这可能来自EEs内部还是需要插件/开发?
答案 0 :(得分:1)
好消息,EE会为你做这件事:)
将related_categories_mode =“yes”添加到新闻频道的exp:channel:entries标签中,然后在您保存的所有时间内获取啤酒。
https://docs.expressionengine.com/latest/channel/channel_entries.html#related-categories-mode