教程代码在 Joomla 2.5 中不再起作用 [英] Tutorial code is not working any more in Joomla 2.5

查看:18
本文介绍了教程代码在 Joomla 2.5 中不再起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我按照 Joomla 开发人员 wiki (http://docs.joomla.org/Developers#Developing_a_Model-View-Controller_.28MVC.29_Component_2) 的教程创建了一个 Joomla 组件.在 Joomla 1.7 中一切正常,但是当我升级到 Joomla 2.5 时,后端的复选框不再起作用.

I followed a tutorial from the Joomla developer wiki (http://docs.joomla.org/Developers#Developing_a_Model-View-Controller_.28MVC.29_Component_2) to create a Joomla component. It all worked fine in Joomla 1.7, but when I upgraded to Joomla 2.5 the checkboxes in the backend are not working any more.

我检查了 http://docs.joomla.org/Developing_a_Model-View-Controller_(MVC)_Component_for_Joomla!1.7_-_Part_09#Adding_a_toolbar 在 Joomla 2.5 扩展中,并且 boxchecked 隐藏字段仍然存在.此外,周围的 javascript 仍然相同.

I checked the code from http://docs.joomla.org/Developing_a_Model-View-Controller_(MVC)_Component_for_Joomla!1.7_-_Part_09#Adding_a_toolbar in Joomla 2.5 extensions and the boxchecked hidden field is still there. Also the javascript around is still the same.

有人遇到同样的问题吗?

Does anyone has the same problem?

推荐答案

我发现了问题.表单的名称旁边应该有一个 id.Joomla 1.7 只检查名称,但 Joomla 2.5 正在检查 ID.

I found the problem. The form should have a id next to the name. Joomla 1.7 is only checking on the name, but Joomla 2.5 is checking for the id.

这篇关于教程代码在 Joomla 2.5 中不再起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆