drupal jQuery 1.4在特定页面上 [英] drupal jQuery 1.4 on specific pages

查看:108
本文介绍了drupal jQuery 1.4在特定页面上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

jQuery 1.4打破了各种模块,并没有准备好取代1.3.2批发。但是在各种具有复杂的JavaScript交互的页面上,我需要1.4。

jQuery 1.4 breaks various modules and is not ready to replace 1.3.2 wholesale. But on various pages with complex javascript interactions, I need 1.4.

强制drupal在特定页面上使用1.4的好方法是什么?

What's a good way to force drupal to use 1.4 on specific pages?

谢谢。

推荐答案

看看这篇文章作者描述了使用hook_theme_registry_alter和一个预处理函数替换一个js文件。 http://www.mediacurrent.com/blogs/remove-or- replace-jscss-page

Take a look at this post, the author describes replacing a js file using hook_theme_registry_alter and a preprocess function. http://www.mediacurrent.com/blogs/remove-or-replace-jscss-page

这篇关于drupal jQuery 1.4在特定页面上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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