首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >CMSMS如何将菜单元素从扩展部分移动到管理区域的内容部分?

CMSMS如何将菜单元素从扩展部分移动到管理区域的内容部分?
EN

Stack Overflow用户
提问于 2014-02-09 21:30:50
回答 1查看 222关注 0票数 0

我已经在CMSMS中安装了表单生成器模块。“表单生成器”子菜单自动添加到扩展选项卡。但是我想将这个子菜单添加到Content选项卡中,而不是扩展。有人知道怎么做吗?

提前谢谢。

最好的雷格尔,伊戈尔

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-10-02 12:59:35

嗯,这是个很老的问题,我是偶然发现的,但是由于没有反应,我会回答的,也许以后有人会发现它有用。我不知道你是否能通过cms面板直接做到这一点。然而,它是可行的,你必须修改主模块文件。在CMS位置的/ your /FormBuilder中找到FormBuilder.module.php文件。有功能负责将模块放入所需的部分。对于所有模块,扩展节都是默认的,除非您将使用下面的函数指定其他部分:

代码语言:javascript
复制
/**
* 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模块定义中没有这样的函数,因此您必须自己添加它,然后它应该更改它的位置。干杯!

代码语言:javascript
复制
 function GetAdminSection()
 {
 return 'content';
 }
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/21665318

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档