创建新菜单项时为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屋!