如何构建“块分类标记功能”?
首先,我很抱歉标题如此模糊。很难解释我想要完成什么。无论如何,我想构建一个模板,需要将节点池(内容类型 A)与页面的主要内容(内容类型 B)一起呈现。如果您愿意,可以将此内容类型 A 视为一个盒子。当您创建新页面(内容类型 B)时,节点列表(内容类型 A)是否可以允许在页面上显示简单的复选框系统?我知道节点队列,但为每个创建的页面创建一个节点队列确实效率很低。走分类法路线也会有点困难,因为每个新的池内容(内容类型 A)都需要一个新的分类术语才能单独检查。是否有一种简单的方法来显示这些要与主要内容一起呈现的框池的列表?
那真是啰嗦了。我真的很感谢你们的所有回复。
谢谢。
编辑:我刚刚重新阅读了我的问题,它似乎读起来不太好。我将使用一篇文章的示例,该文章的两面都有“侧面广告”列表。创建“侧面广告”的节点池后,我可以简单地创建一个新的文章节点并拥有一个带有复选框系统的列表(我可以启用/无法)来显示文章中所选的“侧面广告”吗?
我希望这能解决问题。
First, I apologize the title is so vague. Its hard to explain what I want to accomplish. Anyhow, I want to build a template that requires a pool of nodes (Content Type A) to be presented along side the main content of a page (Content Type B). This Content Type A could be seen as a box if you like. As you create a new page (Content Type B), would it be possible for a list of nodes (Content Type A) that would allow an easy checkbox system to show on the page? I know of nodequeue, but it would really be inefficient to create a nodequeue for every page created. Going the taxonomy route would be slightly difficult as well because every new pool content (Content Type A) would need a new taxonomy term for it to be checked individually. Is there a simple way to display a list of these pool of boxes to be presented along with main content?
That was long-winded. I really appreciate all your responses.
Thanks.
Edit: I just re-read my question and it doesn't seem to read very well. I will use an example of an article with a list of "side adverts" on both sides of the article. After creating a node pool of "side adverts" can I simply create a new article node and have a list with checkbox system (where I can enable / unable) to show the chosen "side adverts" with the article?
I hope this clears things up.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
其实我觉得你的要求并没有那么难。
在内容类型 B 中创建一个仅链接到类型 A 节点的节点引用字段。将节点引用字段的值数量设置为 4、5、无限制(等等),具体取决于您想要从 B 链接到 A 的节点数量。
现在您可以创建一个视图,在查看节点时它将列出所有内容类型 A 节点内容类型 B。
Actually I think your requirement is not that difficult.
In the Content Type B create a Node Reference Field that links to Nodes of type A only. Set the number of values of the Node Reference field to 4, 5, unlimited (etc) depending on many nodes you want linked from B to A.
Now you can create a View which will list all the Content Type A nodes when viewing a node of Content Type B.