I am tryng to find a solution to having an uploaded file eg: pdf to open in a new window.

Once I hand this site off the client will upload a pdf..
when that link is clicked it opens in the same window...

If the location of the file is already known ahead of time then you could do it with Full HTML, but this would not be the case when doing it through the form to add the content and upload the file.

I could not find a module to do this. Not a coder, but can follow directions placing code if this is the only route.
I am hoping this has been solved before. Did find a couple of posts on this but they did not seem conclusive.

Any help here would be appreciated.

Thanks in advance

Comments

You can probably do this in a

You can probably do this in a variety of ways including some code in .htaccess, JQuery or a theme preprocess function. There was a long standing issue for Drupal 6, it might give you some insight as well:

#301234: Open File in New Window (target='_blank')

Has anyone tried this

http://drupal.org/node/301234#comment-4764468

I put this code in the template file and it did not work for me, but there may have been setting I do not know about.

Not a coder

I have not tried that

I have not tried that specific code but offhand did you change "THEMENAME" to the machine name of your theme and then clear cache?

nobody click here