我已经在CMSMS中安装了表单生成器模块。“表单生成器”子菜单自动添加到扩展选项卡。但是我想将这个子菜单添加到Content选项卡中,而不是扩展。有人知道怎么做吗?
提前谢谢。
最好的雷格尔,伊戈尔
发布于 2014-10-02 12:59:35
嗯,这是个很老的问题,我是偶然发现的,但是由于没有反应,我会回答的,也许以后有人会发现它有用。我不知道你是否能通过cms面板直接做到这一点。然而,它是可行的,你必须修改主模块文件。在CMS位置的/ your /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';
}https://stackoverflow.com/questions/21665318
复制相似问题