简体   繁体   English

Joomla:如何显示非MVC组件的菜单特定参数

[英]Joomla: How to show menu-specific parameters for a non-MVC component

I built a Joomla 1.5 component, non-MVC, and it's working fine, so I'd rather not change it to MVC. 我构建了一个非MVC的Joomla 1.5组件,并且工作正常,因此我不想将其更改为MVC。 I need to have some menu items point to my component, each menu item passing different parameters to the component. 我需要一些菜单项指向我的组件,每个菜单项都将不同的参数传递给该组件。 The 'Menu item specific parameters' section in http://docs.joomla.org/Component_parameters is pretty clear, except that the tutorial locates the XML file that contains the parameters assuming an MVC structure. http://docs.joomla.org/Component_parameters中的“菜单项特定参数”部分非常清楚,除了本教程以假定MVC结构的方式查找包含参数的XML文件之外。

If my component doesn't follow MVC, where should I put that XML file, and what should be its name, so that Joomla can find it and show the parameters in the menu creation screen? 如果我的组件不遵循MVC,我应该在哪里放置该XML文件,其名称应该是什么,以便Joomla可以找到它并在菜单创建屏幕中显示参数?

Thanks 谢谢

You can store those parameters in the database table. 您可以将这些参数存储在数据库表中。 There is a parameter column where you can define any parameters you want for each menu element. 在参数列中,您可以为每个菜单元素定义所需的任何参数。 This is explained in the same joomla doc that you link to in your answer... 您在答案中链接到的同一joomla文档中对此进行了说明...

I ended up changing to MVC. 我最终改用MVC。 :| :|

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

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