Add JS file on a certain page on Drupal
Posted
by Asaf
on Stack Overflow
See other posts from Stack Overflow
or by Asaf
Published on 2010-06-18T00:21:55Z
Indexed on
2010/06/18
0:23 UTC
Read the original article
Hit count: 531
I've got a JS file that I want to add to Admin>Add Content>Certain Content type
After looking at template.php and checking out the function theme_preprocess_node
I tried to add the JS through drupal_add_js(...) but no go.
Now, I know that there's a similar question however my case is about adding
a JS file to a certain page and nothing else (better seperation of JS files).
Thanks.
(Drupal 6)
© Stack Overflow or respective owner