表达式引擎:如何将一个通道包含在另一个通道中?
如何将一个频道的内容纳入另一频道? 例如,如果我有一个项目频道。然后我想在该项目中添加项目。
Project
- Item
- url
- caption
- Item
- url
- caption
How would I include contents from one channel into another channel?
For instance, If I have a channel of projects. And then I'd like to add items within that project.
Project
- Item
- url
- caption
- Item
- url
- caption
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
Matrix 有一个新的免费替代品:Grid Lite
Matrix 可能是最好的选择满足您的需求,即使它是我最喜欢的 EE 插件之一。
There is an new free alternative to Matrix: Grid Lite
Matrix is maybe over the top for your needs, even if it is one of my favorite EE addon.
我在这里可以想到三种方法:
类别 参数。
这些方法中的每一种都有效!
I can think of three approaches here:
category
parameter.Each of these approaches would work!
听起来您已经设置了这两个通道,因此 Matrix 或 Grid Lite 虽然是很好的解决方案,但需要您进行大量的迁移工作。
您现在有关联两个渠道的自定义字段吗?即在“项目”频道中,是否有一个自定义字段允许您选择(或写入)该项目属于哪个项目?如果是这样的话,我可以从那里寻求解决方案。
It sounds like you already have these two channels set up, so Matrix or Grid Lite, while great solutions, would require a lot of migrating work on your part.
Do you have a custom field that relates the two channels right now? i.e. in the Items channel, is there a custom field that allows you to choose (or write) which project the item belongs to? If that's the case, I can work toward a solution from there.