我已经在 CMSMS 中安装了 Form Builder 模块。“表单生成器”子菜单自动添加到扩展选项卡。但我想将此子菜单添加到内容选项卡而不是扩展。有人知道该怎么做吗?
提前致谢。
最好的问候,伊戈尔
我已经在 CMSMS 中安装了 Form Builder 模块。“表单生成器”子菜单自动添加到扩展选项卡。但我想将此子菜单添加到内容选项卡而不是扩展。有人知道该怎么做吗?
提前致谢。
最好的问候,伊戈尔
嗯,这是一个很老的问题,我偶然发现了它,但是由于没有回应我会回答,也许以后有人会发现它有用。我不知道您是否可以直接通过 cms 面板执行此操作。但是这是可行的,您必须修改主模块文件。在您的 CMS 位置的 /modules/FormBuilder 中找到 FormBuilder.module.php 文件。有负责将模块放入所需部分的功能。扩展部分是所有模块的默认设置,除非您使用以下函数指定其他部分:
/**
* GetAdminSection()
* If your module has an Admin Panel, you can specify
* which Admin Section (or top-level Admin Menu) it shows
* up in. This method returns a string to specify that
* section. Valid return values are:
*
* main - the Main menu tab.
* content - the Content menu
* layout - the Layout menu
* usersgroups - the Users and Groups menu
* extensions - the Extensions menu (this is the default)
* siteadmin - the Site Admin menu
* viewsite - the View Site menu tab
* logout - the Logout menu tab
*
* Note that if you place your module in the main,
* viewsite, or logout sections, it will show up in the
* menus, but will not be visible in any top-level
* section pages.
* @return string Which admin section this module belongs to
*/
默认情况下FormBuilder模块定义中没有这样的功能,所以你必须自己添加它,然后它应该改变它的位置。干杯!
function GetAdminSection()
{
return 'content';
}