如何在 Drupal 6 中恢复“查看\编辑”选项卡?
我以某种方式摆脱了它们,但不记得是如何摆脱的。当我以管理员身份登录浏览网站时,我希望查看\编辑按钮显示在节点上方。
I somehow got rid of them and don't remember how. When I'm navigating my site while logged in as admin I want the view\edit buttons to show up above nodes.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
可能有几个原因。首先,我会检查 page.tpl.php 文件并查找
。如果未找到或被注释掉,您的选项卡将不会显示。
另请检查您的CSS文件,看看是否有类似的内容:
我还会寻找 theme_menu_local_tasks()。有关详细信息,请参阅如何隐藏编辑 |查看选项卡? 和 http://drupal.org/node/83090
There could be a few reasons. First I would check the page.tpl.php file and look for
<?php print $tabs; ?>
. If that is not found, or is commented out, your tabs will not be shown.Also check your CSS files to see if there is anything resembling:
I would also look for the use of theme_menu_local_tasks(). For more information see How to hide Edit | View tabs? and http://drupal.org/node/83090
如果您使用高级管理菜单(贡献模块),您可能允许使用“在顶部菜单中显示菜单选项卡”(或类似的选项)选项 - 在这种情况下,您将在右上角看到“查看编辑”等管理菜单的位置,而不是您习惯看到它们的位置。
我曾经有过编辑选项卡在我身上消失的情况。我不知道这是怎么发生的,但在 css 中的某个地方它被定义为“可见性:隐藏”。检查你的 html 以确保它不是简单地通过 css 被破坏;如果标签存在于 HTML 中,请使用 firebug 查找哪个 css 规则正在删除它们。
If you're using advanced admin menu (a contrib module), you may have allowed the option "display menu tabs in top menu" (or something like that) - in which case you'll see View Edit etc. at the top right of the admin menu, and not where you're accustomed to see them.
I once had the edit tab disappear on me. I have no idea how this happened, but somewhere in the css it was defined as visibility: hidden. Check your html to make sure it's not simply being nuked via css; if the tabs are there in the HTML, use firebug to find which css rule is getting rid of them.