Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用带有超级鱼的 Drupal 7。
我为登录用户和匿名用户使用一个菜单。
如果页面具有登录角色,Superfish 不会显示指向匿名用户的链接。
但是父菜单项有。
因此,drupal 为匿名用户显示 4 个 nolink 菜单项并且没有子项。
当用户未登录时,如何以编程方式禁用 4 菜单项?
我想到了 hook_menu_alter,但我不知道 nolink 菜单项的 url。
使用每个角色模块的菜单,我可以显示/隐藏菜单项/角色,
http://drupal.org/project/menu_per_role
它有效,但他们说这不是最终版本。
我有一个如下所示的表格。
<table> <tr> <td class="selected plus"><a>+</a></td> <td><a class="minus">-</a></td> </tr> </table&g
0 jquery - using .get to add html before adding to DOM
1 javascript - Dojo 是否允许更改 dom id 或 widgetid?
2 mysql - 在数据库中存储特定的日期时间格式
3 c++ - 多次使用循环连续输入字符,如字符串
3 yii - 动态创建显示不同数据的 CGridView
1 java - 我无法在我的应用程序中打开谷歌地图
Reference php × 1429865 c/c++ × 756500 nginx × 49975 mongodb × 159057 mybatis × 3233 anaconda × 13410 pycharm × 14671 python × 1902243 vscode × 56040 docker × 110988 github × 49000 flask × 49129 ffmpeg × 24037 jmeter × 16910 matplotlib × 63493 bootstrap × 54641