Timeline for How do I attach JS and CSS on Slick Views
Current License: CC BY-SA 4.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 17, 2019 at 12:58 | comment | added | leymannx | Then check for other attributes then the name. Depends on you. | |
Apr 17, 2019 at 12:55 | comment | added | CocoSkin | @leymannx This function target a specific view name. I have a multisite that contains 100+ sites. It will be an issue if anyone create a new slick views with different views name. | |
Apr 16, 2019 at 21:00 | review | Close votes | |||
May 2, 2019 at 3:05 | |||||
Apr 16, 2019 at 20:59 | answer | added | hotwebmatter | timeline score: 0 | |
Apr 16, 2019 at 20:50 | comment | added | leymannx | Which is exactly what this duplicate question answers already. You can place the code in a module as well. If view == my_slick_view, then fire drupal_add_js/css. | |
Apr 16, 2019 at 20:48 | comment | added | CocoSkin | @leymannx The link you provide is the hook function for template.php views. I need to load a JS library when a Slick Views render on a page. | |
Apr 16, 2019 at 20:40 | comment | added | leymannx | Possible duplicate of How do I add JavaScript specific for a view? | |
Apr 16, 2019 at 20:29 | history | asked | CocoSkin | CC BY-SA 4.0 |