How do I get all documents in every document library (MOSS Sharepoint 2007) to open in a new window?

Posted on 2010-01-07
Medium Priority
Last Modified: 2012-05-08
I would like all of my documents from document libraries to open in a new window by default. Is there a way to do this? Thanks.
Question by:ivaarsen
  • 2
  • 2
LVL 16

Expert Comment

ID: 26205213
In a way, yes.

1.- Create your "new window" page in the root site.
2.- Add a content query web part
3.- Set it to query all document libraries
4.- Filter created by [me]
5.- Set row limit.

Author Comment

ID: 26205369
Thanks for the input. This is for all document libraries (and they are already created by people) and there are already links set up to them.  There will be more libraries added and this feature should already apply to them when they are created.

I would prefer not to have a new page or new web part to use for all of these, although this might work if we needed it to.
LVL 16

Accepted Solution

raybies earned 1500 total points
ID: 26205998
In answer to your question, the answer is: no this is not possible.

You can always instruct your users to press "shift" before clicking or you could add some javascript to loop through the links and append a "target=_blank" attribute and remove the onclick event...

Also read this:

Not the same but similar.

Author Closing Comment

ID: 31674284
We ended up accomplishing this by editing the onet file. this only works for sites created after the change. We ended up re building the sub sites and moveing the doc libs.

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There is one common problem that all we SharePoint developers share: custom solution deployment. This topic can't be covered fully in this short article, so all I want to do in this one is to review it from a development-to-operations perspectiv…
Summary In SharePoint 2010 it is easy to create custom color themes to jazz up a site. Theme colors can also be created in PowerPoint 2010 with a few clicks. But how do the chosen colors actually look in the SharePoint site? The attached PowerPoint…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses
Course of the Month14 days, 5 hours left to enroll

807 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