Drupal 菜单或分类法?
我有一个组织的层次结构列表和一个对组织执行操作的模块。我的任务是构建一个页面,其中组织菜单树放置在左侧,模块位于中心。实现这个的最好方法是什么?
我当前的建议是以“organization/$orgid”的形式建立链接,并使模块 hook_menu() 通配符。但问题是我在创建菜单项时无法分配通配符路径。
也许我应该使用分类法?
i have a hierarchical list of organizations and a module that performs actions to an organization. my task is to build a page where a menu tree of organizations is placed on the left side and the module is on center. what is the best way to implement this?
my current suggestion is to make links in the form of "organization/$orgid" and make the module hook_menu() wildcards. but the problem is that i can't assign wildcard paths when creating a menu item.
maybe i should use taxonomy?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用组织的分类法并使用以下模块:
使用 *hook_taxonomy_menu_path* 您可以控制使用 *taxonomy_menu* 模块生成的菜单项使用的路径。
You could use taxonomy for the organizations and use the following modules:
Using the *hook_taxonomy_menu_path* you can control what paths the menu items use that get generated using the *taxonomy_menu* module.