社交引擎如何添加或编辑菜单项
我是社交引擎的新手。我正在尝试添加一个可与 jQuery 配合使用的自定义菜单项。 但我需要了解要编辑的一个或多个文件在哪里才能应用这些更改。
谁能告诉我社交引擎核心是如何组织的?
如何找到控制和生成菜单项的文件?
I am new to Social Engine. I am trying to add a custom menu item that will work with jQuery.
But I need to understand where is the file or files to edit in order to apply these changes.
Can anyone tell me how the Social Engine core is organized?
How do I find the files that control and generate the menu items?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
转到控制面板>布局>菜单编辑器并向现有菜单添加新菜单项。在同一页面中,您还可以创建新菜单,然后使用布局管理器将它们添加到任何布局中。
您应该能够通过编辑合适的视图文件将 jQuery 功能添加到任何菜单。就像如果您希望 jQuery 在站点范围内可用一样,您可以编辑 application\modules\Core\layouts\scripts\default.tpl 和该文件夹中的其他布局脚本。
您还可以创建菜单插件。查看数据库 -
engine4_core_menuitems
上的此表。您可以看到一些菜单项具有相应的类。找出 SocialEngine 中的这些类并尝试了解它们是如何工作的。您可以使用这些类添加条件和小型 JavaScript,这是使用 SocialEngine 菜单的推荐方法。Go to Control panel > Layouts > Menu editor and add new menu items to existing menus. From the same page you can also create new menus and later add them to any layout using the layout manager.
You should be able to add jQuery functionality to any menu by editing a suitable view file. Like if you want your jQuery to be available site wide then you can edit
application\modules\Core\layouts\scripts\default.tpl
and other layout scripts on that folder.You can also create menu plugins. Take a look at this table on database-
engine4_core_menuitems
. You can see some menu items have corresponding classes. Find out those classes in SocialEngine and try to understand how they work. You can add conditions, small javascripts using these classes and this is recommended way to work with SocialEngine menus.进入管理(控制面板)
go to admin(control panel)
如前所述,我们建议在菜单编辑器中编辑菜单,可以在“管理面板”>“菜单编辑器”中找到该菜单。布局>菜单编辑器。有关详细说明,请参阅:http://support.socialengine。 com/questions/217/Admin-Panel-Layout-Menu-Editor
As mentioned previously, we recommend editing menus in the Menu Editor which can be found in the Admin Panel > Layout > Menu Editor. For detailed instructions, please see: http://support.socialengine.com/questions/217/Admin-Panel-Layout-Menu-Editor
您可以通过管理员用户查看下面提到的视频网址来了解 Socialengine Menu 的工作环境:
https://www.youtube.com/watch?v=Frc5U6iB_wg
需要点击控制面板然后布局然后菜单编辑器并向现有菜单添加新菜单项。在同一页面中,您还可以创建新菜单,然后使用布局管理器将它们添加到任何布局中。
You can view the below mentioned video URL to understand the working environment with Socialengine Menu through admin user :
https://www.youtube.com/watch?v=Frc5U6iB_wg
need to click on Control panel then Layouts then Menu editor and add new menu items to existing menus. From the same page you can also create new menus and later add them to any layout using the layout manager.