0
votes

I'm using Drupal 7 and the Omega Base theme with my subtheme created off of that. I created a custom content type that has fields mapped to use the "Feeds" module to import nodes with images. That is all working.

What I need to do is apply a javascript slideshow to the images that are in each node so they rotate (some nodes have more than one image).

Can anyone tell me how to add javascript to the Omega template file so that it applies the javascript to ALL of the nodes created when I import the data from the "Feeds" module?

I can't even get a preview to work using firebug. Stumped.

Thanks

1

1 Answers

0
votes

One way of doing this is to copy "html.tpl.php" from omega/templates/ to YourTheme/templates/ folder. Then, add the Javascript just above the < /body> tag at the bottom of the page. This will make the Javascript applied throughout the website.

If you need to apply only to a particular content type you create, copy "node.tpl.php" from omega/templates/ to YourTheme/templates/ folder and rename it to "node--Your_Content_Type_Name.tpl.php". (Note the double-dashes and underscores!). Then add the Javascript to this file.