简体   繁体   English

创建新菜单项时为 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.我在互联网上搜索了如何在创建新菜单项时创建附加选项的很好的解释。

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.例如:在创建菜单选项时,我创建了一个组件来销售不同公司的筹码,它只显示公司 xyz 的筹码,而不是所有公司的筹码。

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/Developing_a_Model-View-Controller_(MVC)_Component_for_Joomla!2.5_-_Part_06#site.2Fviews.2Fhelloworld.2Ftmpl.2Fdefault.xml http://docs.joomla.org/Developing_a_Model-View-Controller_(MVC)_Component_for_Joomla!2.5_-_Part_06#site.2Fviews.2Fhelloworld.2Ftmpl.2Fdefault.xml

For the complete list of params you can check here- http://docs.joomla.org/Standard_form_field_types有关参数的完整列表,您可以在此处查看 - http://docs.joomla.org/Standard_form_field_types

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM