Drupal——节点参考和实体参考都很棒——我需要“菜单参考”
是否有菜单参考,以便我可以将菜单附加到节点,并将它们呈现在页面上?
我正在寻找相当于节点和/或实体引用模块的解决方案。我应该补充一点,“菜单”不是一个捆绑包吗?
Is there a Menu reference so I can attach menus to nodes, and render them on the page?
I'm looking for a solution which is equivalent to Node and/or Entity Reference modules. Should I add that "Menu" is not a bundle in either?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Drupal 中没有这样的机制——无论是核心机制还是贡献机制。
要模拟这一点,您需要做的是:
将菜单块放置在您希望其显示的块位置。
想让它出现。
这有点乏味,但是你必须明白像Drupal这样的CMS是为了满足大众而开发的。这样做通常被认为是糟糕的设计,因为它使用户导航变得困难。话虽如此,您可能有一个完全正当的理由想要这样做 - 但我不希望很快就会弹出提供此功能的模块。
There is no such mechanism in Drupal - either core or contributed.
What you need to do to simulate this is:
place your menu block in the block position that you want it to appear.
want it to appear.
It's a little tedious, but you have to understand that a CMS like Drupal is developed to satisfy the masses. It's generally considered poor design to do this because it makes navigation difficult for users. Having said that, you may have a perfectly valid reason for wanting to do that - but I wouldn't expect a module offering this functionality to popup anytime soon.