Solved

How do I change the link target for multiple pdf documents?

Posted on 2008-06-25
3
158 Views
Last Modified: 2013-11-05
I have many pdf documents in a website that I want to have each one open in a new window when the each link is clicked on. How do I change all the pdf document links in a entire website to target _blank without changing each one individually?
0
Comment
Question by:Barbara69
  • 2
3 Comments
 
LVL 70

Accepted Solution

by:
Jason C. Levine earned 500 total points
ID: 21872137
Hi Barbara69,

Do a Find and Replace on the entire site.

Set the search parameters to source code and search for the following string:

.pdf"

Replace with:

.pdf" target="_blank"

You should probably do a Find All first just to make sure you don't catch anything you don't want to by accident.
0
 

Author Comment

by:Barbara69
ID: 21873765
Thank you so very much. You saved me a lot of time. I had tried find and replace, but I was using *.pdf for my search string, needlessly to say, unsuccessfully. Thanks once again.
0
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 21877511
You're welcome.

*.pdf will not work inside of Dreamweaver but you CAN use regular expressions to get the same functionality.  In this case, it was easier to do a normal F/R and not muck around with regex.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

I still run into .cgi files every now and then. In some instances, I actually prefer the simplicity of a .cgi script to other options. Since I use DreamWeaver extensively, what I needed was a way to open .cgi scripts in Dreamweaver. And I wanted to …
Adobe Dreamweaver CS5 is a WYSIWYG web page editor that has advanced HTML, CSS, and Javascript rendering functionality and is probably the most well-known HTML editor available. Much of Dreamweaver's appeal centers around the Design View interfac…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now