基于视图、分类和节点的面包屑,如何配置?
我正在开发我的第一个 Drupal 项目,我想知道应该如何更改面包屑和活动菜单项。我的网站设置的一部分如下:
- 虚拟展览(这是一个视图,列出了与特定分类词汇相关的所有分类术语,面包屑应该是“主页>虚拟展览”)
- 主题(这是虚拟展览视图中列出的分类术语之一,面包屑应为“主页 > 虚拟展览 > 主题”)
- Theme1(这是配置了分类主题的节点,面包屑应为“主页 > 虚拟展览 > 主题 > 主题 1”)
- 主题2
- 人
- 人物1
- 人物2
- 主题(这是虚拟展览视图中列出的分类术语之一,面包屑应为“主页 > 虚拟展览 > 主题”)
因此,第一页给出了展览类别列表(这是分类术语)。第二页是展览类别本身(分类术语)。最后一页是配置了分类术语的节点。
现在因为我正在使用 3 种不同的东西,我不知道应该如何配置面包屑。因为整个层次结构都应该在其中。我尝试了不同的模块(分类面包屑、菜单跟踪、分类上下文),所有这些模块都只做了我需要的一小部分。难道没有人有一个好的解决方案来解决这个问题吗?
国王问候, 大安
i'm developing my first Drupal project and i'm wondering how should alter the breadcrumbs and active menu item. part of my site setup is as follows:
- Virtual Exhibitions (which is a view, that lists all the taxonomy terms related to a certain taxonomy vocabulary, breadcrumb should be "home > Virtual exhibitions")
- Themes (which is one of the taxonomy terms listed in the Virtual Exhibitions view, breadcrumb should be "home > Virtual exhibitions > Themes")
- Theme1 (which is a node which has the taxonomy Themes configured, breadcrumb should be "home > Virtual exhibitions > Themes > Theme1")
- Theme2
- Persons
- Person1
- Person2
- Themes (which is one of the taxonomy terms listed in the Virtual Exhibitions view, breadcrumb should be "home > Virtual exhibitions > Themes")
So the first page gives a list of exhibition categories (which are taxonomy terms). The second page is the exhibition category itselfs (the taxonomy term). And the last page is a node which has the taxonomy term configured.
Now because i'm using 3 different things i don't know how i should configure the breadcrumbs. Because the whole hierarchy should be in it. I tried different modules (Taxonomy breadcrumb, Menu trail, Taxonomy context) and all of them just do a small thing of what i need. Doesn't anyone have a good solution on how to handle this?
king regards,
Daan
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
模块 Custom Breadcrumbs 听起来它会做你需要的事情: xx-2.x 分支将使用一系列标记基于视图和分类法(以及各种其他事物)生成面包屑。我在我开发的网站上使用它,其用例与您描述的相同。
The module Custom Breadcrumbs sounds like it'll do what you need: the x.x-2.x branch will generate breadcrumbs based on Views and Taxonomy (among a variety of other things) using a series of tokens. I use it on sites I develop with the same use case as you describe.