Hello,

I am wondering how I could add a script to every story I have on my site.

Basically I want a certain image to show up in every story I make (Full View), kind of like an option to add an image to the end of a story.

I'd like to do this to every story I have on my site but it would be much to tedious to hand edit every story and add the image.

I was wondering if editing the story module would be the way to go? Or is there a module that can help me out?

Thanks!

Comments

ronan’s picture

if you want the same image on every story, then you will want to edit the template for the story node type. Duplicate node.tpl.php in your theme directory. Rename it node-story.tpl.php, then add your image tag to that file.

Ronan
------------------------------------
Gorton Studios - Websites that Work. http://www.gortonstudios.com/
http://www.gortonstudios.com/portfolio/technologies/drupal

------------------------------------
Ronan
Founder - NodeSquirrel - https://www.nodesquirrel.com/
Agency Tools Lead - Pantheon - https://www.pantheon.io/

mrjw’s picture

Hmm, I'm kind of new to Drupal and have only used it for about 2 months now.

I do not see a node.tpl.php file in the current worrking theme folder. Any suggestions?

I am using a theme other then the ones for download at drupal.org

ronan’s picture

Which theme? What files are there?

Ronan
------------------------------------
Gorton Studios - Websites that Work. http://www.gortonstudios.com/
http://www.gortonstudios.com/portfolio/technologies/drupal

------------------------------------
Ronan
Founder - NodeSquirrel - https://www.nodesquirrel.com/
Agency Tools Lead - Pantheon - https://www.pantheon.io/

mrjw’s picture

Theme name: DPL436

Files:
template.php page.tpl.php node-forum.tpl.php style.css are all that are there along with some TXT files and images.

The theme I am using was purchased from a website, any help would be appreciated, thanks!

mrjw’s picture

Still looking for some help on this :)

US421’s picture

It is hard to offer help on something we have no knowledge of or access to. It is impossible to guess the structure of the theme. Does the company not offer support?