Jquery ui 在我的Drupal站点上包括.js文件
我想在我的Jquery ui 在我的Drupal站点上包括.js文件,jquery-ui,drupal-6,Jquery Ui,Drupal 6,我想在我的Drupal网站上使用jQueryUI Autocomplete,我下载了它运行所需的.js文件。之后,我将.js文件保存在位于/sites/all/themes/advanced/js的主题文件夹中。在我的page.tpl.php中有这样的代码 <head> <?php print $head ?> <title><?php print $head_title ?></title> <?php
Drupal
网站上使用jQueryUI Autocomplete
,我下载了它运行所需的.js
文件。之后,我将.js
文件保存在位于/sites/all/themes/advanced/js
的主题文件夹中。在我的page.tpl.php
中有这样的代码
<head>
<?php print $head ?>
<title><?php print $head_title ?></title>
<?php print $styles ?>
<?php print $scripts ?>
<?php print phptemplate_get_scripts(); ?>
<?php if ($user->uid) print phptemplate_get_scripts_advanced(); ?>
<!--[if lt IE 7]>
<?php print phptemplate_get_ie_styles(); ?>
<![endif]-->
</head>
对于上面的代码,我假设将包含我的
.js
文件,但是当我重新加载页面并通过Firebug
检查正在运行的脚本时,我找不到它们。我错过了什么?提前谢谢。收到了。我确实尝试将脚本手动放到template.php上,这就解决了问题