Drupal 7 中显示单个节点不同字段的不同页面
可以优雅地做到这一点吗?这个想法是,内容类型“project”的节点有很多字段,它的 url 类似于 node/5
。我想显示该页面上的一些字段,以及 node/5/extra
上的其他字段,这是一种“扩展”页面,用户仅在对该内容感兴趣时才会加载该页面(很多内容)图像,就我而言,这会大大减慢主节点页面的速度)。
我尝试了 显示套件 模块,但没有成功(看起来它并不是真正适合做我想做的事情)。我还看到了这篇博文,其中解释了如何向内容类型添加自定义显示模式(默认情况下的“默认”和“预告片”除外),但我也无法让它按照我想要的方式工作。
Is it possible to elegantly do this? The idea is, a node of content type "project" has a lot of fields, its url is something like node/5
. I want to show some of the fields on that page, and others on node/5/extra
, kind of an "extended" page that the user only loads if he is interested in that content (lots of images, in my case, that would slow down the main node page considerably).
I tried the Display suite module, unsuccessfully (it seems it's not really meant for doing what I want). I also saw this blog post, which explains how to add a custom display mode to a content type (other than the Default and Teaser ones that come by default), but I can't get it to work the way I want to either.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我想您可以创建一个视图,将节点 ID 作为 URL 的默认参数。然后您可以选择显示或隐藏哪些字段
I guess you could create a view having the node ID as a default argument from URL. Then you can choose which fields to show or hide