Drupal 面板、选项卡 - 如何在面板节点内创建指向选项卡的链接?
如何在面板节点内创建指向选项卡的链接?
我正在开发 Drupal 网站,并且在面板节点内有选项卡(模块:选项卡、面板、选项卡面板样式)。当我单击选项卡时,它会将我带到正确的选项卡。当我单击“下一个”和“上一个”链接时,它们会转到正确的页面。当我将鼠标悬停在这些链接上时,它们会显示链接 URL(例如: http://examplesite .com/content/Project-Template#build-it)。
当我在地址栏中输入类似的 URL 时,它不会将我带到选项卡,但它确实会将我带到带有选项卡的主页。
如何创建指向面板节点内选项卡的链接?
这非常重要,因为我希望能够将人们从其他页面定向到某个选项卡。如果我需要调用其中一个选项卡但此时传递一些参数(例如:编辑或删除数据,它传递要编辑或删除的内容的参数),这也将很有用。我希望用户返回到他们发出请求的选项卡,而不是第一个不用户友好的选项卡 b/c。
How do I create a link to a tab within a panel node?
I'm working on a Drupal website and have tabs within panel nodes (Modules: Tabs, Panels, Tabs Panel Style). When I click on the tabs it takes me to the correct tab. When I click on the 'next' and 'previous' links they take to the correct page. When I hover over those links they show me the link URL (ex: http://examplesite.com/content/Project-Template#build-it).
When I type in a URL like that in the address bar it doesn't take me to the tab, but it does take me to the main page with the tabs on it.
How do I create a link to a tab within a panel node?
This is very important b/c I want to be able to direct people to a certain tab from other pages. This will also be useful if I need to call one of the tabs but pass some parameters in this time (example: editing or deleting data, which passes parameters of what to edit or delete). I want the user to be brought back to the tab they made the request from and not the first tab b/c that is not user-friendly.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我为你做了这个,它是针对 7.x-1.x 分支的。
https://drupal.org/node/2214435#comment-8560105
I made this for you, it's for the 7.x-1.x branch.
https://drupal.org/node/2214435#comment-8560105