Open Images in New Auto-Sized Window

spoondevil

Joined: 2003-01-27
Posts: 4
Posted: Mon, 2005-03-07 16:20

Seeing as I'm using Gallery2 in an iframe, I don't particulary want the images opening in this. I would much prefer them to open in a new pop-up window.

I saw on here someone said about linkTarget module, but I can't see anything like this is mine.

Anyone know if I can permantley ammend my script to open in a new window?

If it's not possible to do it into a auto-sized window, then how about just a plain target="_Blank" ???

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-03-07 16:33

spoondevil, we recommend using GalleryEmbed from embed.php rather than iframes. G2 is designed to not use pop-ups at all. Who likes pop-ups anyway? They are rather considered bad webdesign.
However, I haven't heard of a linkTarget module for G2. As it seems, only the imageblock (random, popular) has a linkTarget option. If you want the album or the item view (showitem) to open images in new windows, you'll have to edit their templates.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Mon, 2005-03-07 16:58

linkTarget is a parameter for external image blocks, see Site Admin / Random/Popular
if you want a link target from images while browsing your G2 then try making a local template for layouts/matrix/templates/singleBody.tpl

 
spoondevil

Joined: 2003-01-27
Posts: 4
Posted: Mon, 2005-03-07 18:23

Seems like it's gonna be too much hassle opening in a new window ;)

I took a look at some of the source and thought I'd go and do some welding on the car instead!