Timeline for Including JS files in template.php to control weight/order/group
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 25, 2013 at 9:35 | answer | added | pico34 | timeline score: 0 | |
Sep 24, 2013 at 19:25 | review | First posts | |||
Sep 24, 2013 at 19:25 | |||||
Sep 24, 2013 at 19:18 | history | edited | Charlie Schliesser | CC BY-SA 3.0 |
deleted 1 characters in body
|
Sep 24, 2013 at 19:17 | comment | added | Charlie Schliesser |
@arpitr The question is really what is the best place to add .js files that should be included on every page, but should be included in the JS_LIBRARY or JS_THEME group. It seems the 2 options are to add them to the .info file and then change their group in hook_js_alter() or to add all of them in template_preprocess_html() , which would certainly work but I'm not sure if it has drawbacks.
|
|
Sep 24, 2013 at 19:12 | comment | added | arpitr | Assuming your question as How to include js page specifically. Answer can be drupal_add_js() is what you are looking for. for example | |
Sep 24, 2013 at 19:07 | history | edited | Charlie Schliesser | CC BY-SA 3.0 |
edited tags; edited title
|
Sep 24, 2013 at 19:05 | history | asked | alex.agat | CC BY-SA 3.0 |