Is there a simple fix for having documents open in a new window? I'm not a php programmer so I'm not sure where to start.
Any ideas?
Is there a simple fix for having documents open in a new window? I'm not a php programmer so I'm not sure where to start.
Any ideas?
Comments
Comment #1
joelstein commentedThere is currently no simple way to do this, other than the usual way of altering what gets written to the screen, by implementing theme_filetree in your theme.
Comment #2
middlenewman commentedAlso interested. What would be the PHP modifications for this?
Comment #3
johnvyou could try to force_download the file. The file will appear in the bottombar (Chrome) or in a open/save popup-box (IE).
Comment #4
szaszg commentedYou simply need a target="_blank" in the anchor tag, then all the linked things open up in a new window or tab depending on browser settings.
In the filetree.module at line 200:
If you change
to
all the links open in a new window.
Comment #5
middlenewman commentedThanks! This worked for me!!