使用视图显示节点的菜单父级的标题
我正在尝试在视图块显示中显示节点的菜单父级的标题。 例如,我的菜单有“关于我们”--> “我们的历史”。在“我们的历史”中,我想使用视图在块中显示“关于我们”。
我搜索了 Drupal Views 问题,但一无所获。我什至可能会以错误的方式处理这个问题。
感谢您的帮助!
更新:要了解我的意思,请访问http://bpc。 paulsham.com/about-us/history。我希望图像横幅上的文字显示“关于我们”。
I am trying to display the title of a node's menu parent in a Views block display.
For example, my menu has "About Us" --> "Our History". In "Our History," I would like to display "About Us" in a block using views.
I have searched through the Drupal Views issues and come up with nothing. I might even be approaching this in the incorrect way.
Thanks for your help!
Update: To see what I mean, please visit http://bpc.paulsham.com/about-us/history. I would like the text on the image banner to say "About Us".
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不认为这是视图默认可以做的事情。相反,您可以考虑使用 菜单块 模块,该模块允许您制作核心的菜单链接块菜单模块无法做到这一点。
例如,如果您的“关于我们”节点位于主链接菜单中,您可以创建一个显示该节点子节点的菜单块。这将是动态的,以便当您查看主链接的另一个顶级项目时,该块将仅显示该链接的子菜单项。
I don't think this is something Views can do by default. Instead, you may consider using the Menu Block module, which allows you to craft blocks of menu links that the core menu module is incapable of doing.
For example, if your 'About Us' node is in the primary links menu, you could create a menu block that showed the children of that node. This would be dynamic so that when you viewed another top-level item of the primary links, the block would only display the children menu items of that link.