드루팔 (Drupal) 사이트에있는 사람들은 6.29가 jarery의 EARLIER 버전을 발표했습니다. jQuery Update 및 일부 종속성을 실행하고있었습니다. 갑자기 jQuery 업데이트가 작동하지 않습니다. 사실 : _preprocess_page()를 사용하는 일반적인 방법 중 하나가 아닙니다. 현재 스크립트를 통합하지 않고 사이트 운영을해야하고 문자열도 아무 소용이 내 테마 template.php에서 이것을 시도 /misc/jquery.js 의 파일 경로로 대체 않았다 사람이 할 수있는Drupal 6.29 Jquery Update et. do not work
function my_theme_preprocess_page(&$vars, $hook) {
if (arg(0) != 'admin' || !(arg(1) == 'add' && arg(2) == 'edit') || arg(0) != 'panels' || arg(0) != 'ctools') {
$scripts = drupal_add_js();
$new_jquery = array(
drupal_get_path('theme', 'my_theme') . '/js/jq-1.7.2.min.js' => $scripts['core']['misc/jquery.js']);
$scripts['core'] = array_merge($new_jquery, $scripts['core']);
unset($scripts['core']['misc/jquery.js']);
$vars['scripts'] = drupal_get_js('header', $scripts);
}
}
희망 약간의 빛을 비추십시오. 이것은 큰 문제이며, 캐시 된 페이지를 2 초 정도 늦출 수 있습니다. 더 많은 지식을 가진 사람이 모를 것이라고 상상할 수는 없지만 Google에는 아무 것도 없습니다.