在Drupal中创建Context View,然后根据NID(节点id)显示在Panel中
我有一个简单的问题。我确信这很容易做到,但我错过了一些东西。
如何创建所有内容/节点类型的视图上下文。然后我想根据 NID/节点 ID 在面板 3 中显示我的节点?这是正确的方法吗?
背景:
内容类型有很多教师。有一个针对所有教师的页面,例如 www.example.com/all-teachers。如果用户从该页面单击“特定教师”,他们应该被带到:
www.example.com/teacher-name - 该页面应显示“该教师”的内容。
如果我的问题不清楚,请询问,非常感谢您的帮助。
感谢你的回复。
Panel 3 部分只是有一个自定义布局页面。我正在使用 960grid 来显示内容。我想根据NODE ID在面板中显示动态内容。
执行此操作的方法是创建一个视图并传递一个参数,该参数将是节点 ID。然后在面板 3 中您可以创建上下文(视图)。这允许您将节点中的字段放在单独的内容窗格上。
显示的 URL 将基于节点 ID。它基本上就像为许多不同的教师详细信息创建 1 个模板。我不知道如何用技术术语解释它,但我希望你明白。
谢谢。
I have a quick question. I am sure it is easy to do but I am missing something.
How do I create a View Context of All Content/Node Types. Then I want to display my nodes in Panel 3 based on NID/Node ID? Is this the right way to go?
Background:
There are many teachers as Content Types. There is a page for all teachers eg
www.example.com/all-teachers. If a user clicks on "a particular teacher" from this page they should be taken to:
www.example.com/teacher-name - this page should display contents from "this teacher".
Please ask if my question is not clear and thank you so much for your help.
Thank you for your reply.
The Panel 3 part is only to have a custom layout page. I am using 960grid to display the content. I want to display dynamic content in the panel based on NODE ID.
The way to do this is to create a View and pass an argument which will be Node ID. Then in Panel 3 you can create the Context (View). This allows you to put fields from the node on seperate content panes.
The URL displayed will be based on the Node ID. Its basically like creating 1 template for many different teacher details. I am not sure how to explain it in technical term but I hope you get the idea.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我根本不明白为什么你需要面板。视图不能将每个老师链接到它的节点吗?如果您想控制教师节点的显示方式,为什么不使用 Display Suite 之类的东西。
I don't understand why you need panels at all. Can't the view just link each teacher to it's node? If you want to control how a teacher node is displayed why not use something like Display Suite.