Drupal Questions & Answers

Ask and answer Drupal related questions! No question too simple or complex!
runeveryday's picture
Asked by on Mon 11th Jan 2010
add js for a single page

if i want to load a .js-file just for a special page? i ask this, because i try to load a .js file just for a special views-block in Drupal 6.
What i did was creating a views-view—viewname.tpl.php, which is working. Now i added a code like this:

(drupal_get_path('theme', 'camp') .'/frontpage.js', 'theme');

But it doesent work. how to make this work. thank you!

Commenting on this Drupal Question is closed.