创建新菜单项时为 joomla 组件创建新选项 [英] creat new options to joomla component when creating new menu item
问题描述
我在互联网上搜索了如何在创建新菜单项时创建附加选项的很好的解释.
I searched internet for good explanation how to create additional options when creating new menu item.
例如:我在创建菜单选项时创建了一个组件来销售不同公司的筹码,它只显示公司 xyz 的筹码,而不是所有公司的筹码.
For example: i created component to sell chips of different companiens when creating menu option it to show only chips of company xyz and not from all companies.
类似的工作流程是我们想要添加文章作为新菜单项.必需设置"所在的字段.
Similar work-flow is when we want to add article as new menu item. Field where 'Required Settings' is.
请给我看负责它的代码或好的教程.
Please show me code responsible for it or good tutorial .
推荐答案
如果您正在寻找自定义组件的菜单选项,您可以在以下文件中添加菜单参数-
If you are looking for menu options for your custom component, you can add menu parameters in the below file-
site/components/com_component/views/viewname/tmpl/default.xml
这里是如何创建菜单参数的说明-
Here is the explanation how to create menu params-
有关参数的完整列表,您可以在此处查看-http://docs.joomla.org/Standard_form_field_types
For the complete list of params you can check here- http://docs.joomla.org/Standard_form_field_types
这篇关于创建新菜单项时为 joomla 组件创建新选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!