Open Uploaded PDF in New Tab or Window

5 posts by 3 authors in: Forums > CMS Builder
Last Post: March 6, 2009   (RSS)

By ThreeTree - March 6, 2009

I set up an articles page so that pdfs could be uploaded. In FireFox the pdf opens in a new tab as intended when the link is clicked. In IE a new window is not opened and pdf replaces the website page. How do I code in CMS Builder to make new tab/window a consistent result. Client requests new window. This is a multi page.

Re: [ThreeTree] Open Uploaded PDF in New Tab or Window

By flamerz - March 6, 2009

http://www.thefutureoftheweb.com/blog/target-blank-xhtml11

best regards

Re: [ThreeTree] Open Uploaded PDF in New Tab or Window

By Dave - March 6, 2009

Try doing it the old-school html way:

<a href="<?php echo $upload['urlPath'] ?>" target="_blank"> View Quick Tip </a>

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Open Uploaded PDF in New Tab or Window

By ThreeTree - March 6, 2009 - edited: March 6, 2009

Thanks! Works just fine.