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

Posted on 2010-01-07
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
    LVL 16

    Expert Comment

    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

    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

    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

    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

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    Suggested Solutions

    Note:  There are two main ways to deploy InfoPath forms:  Server-side and directly through the SharePoint site.  Deploying a server-side InfoPath form means the form is approved by the Administrator, thus allowing greater functionality in the form. …
    The vision: A MegaMenu for a SharePoint portal home page The mission: Make it easy to maintain. Allow rich content and sub headers as well as standard links. Factor in frequent changes without involving developers or a lengthy Dev/Test/Prod rel…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.

    754 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

    17 Experts available now in Live!

    Get 1:1 Help Now