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.
我的客户在 joomla 的管理面板中受到限制,并且用户组是 menager。我需要向他们展示他们所需要的,仅此而已。但是我可以为该组设置 widgetwit 权限,没有选项可以像其他组件配置弹出屏幕一样进行设置。如何将其展示给管理用户组。
首先,您需要允许您的组件保存与权限相关的信息,然后访问首选项,最后设置适当的值。
进入组件文件夹:/administrator/components/com_widgetkit/ 使用以下代码创建 config.xml 或编辑它以包含“权限”字段集。
然后在组件或视图中的任何位置添加一个 JToolbar 按钮用于首选项:
JToolBarHelper::preferences('com_widgetkit');
现在在管理员视图中,您应该看到选项按钮。