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: [flamerz] Open Uploaded PDF in New Tab or Window

By ThreeTree - March 6, 2009

Not clear how how to implement this code. This is the CMS Builder code that I believe that I need to modify. I'm new to PHP.

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

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.