List Resized image links in a table rather than drop down box.

jennec
jennec's picture

Joined: 2006-12-22
Posts: 4
Posted: Fri, 2006-12-22 11:02

Hi guys/gals,

I want to be able to list, under, above, or the side of my image a list of all other resized images available for that photo. I would like this to show on the photo page only.

Is this possible? I really only need the code to get the info, as placing it in the photo.tpl file is the easy bit.

Thanks for any help you can give me.

Jennec.

 
jennec
jennec's picture

Joined: 2006-12-22
Posts: 4
Posted: Fri, 2006-12-22 11:03

I basically do not want to have a drop down list on my photo.tpl. Just a list of links to each resized image. Additionally this code should remove any sizes not viewable according to group security, etc.

Thanks again.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2006-12-22 16:22

Edit the code that renders the dropsown box to create links instead.

 
jennec
jennec's picture

Joined: 2006-12-22
Posts: 4
Posted: Sat, 2006-12-23 10:14

Where is the code, can you give me some examples. Whilst I dabble in customizations, I know very little about coding, and its trial and error for me.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2006-12-23 15:51

look in photo.tpl and you will find how it is called:
{g->block type="core.PhotoSizes" class="giInfo"}
change that to {g->block type="core.PhotoSizesNoDrop" class="giInfo"} and move where you would like.

Then edit modules/core/templates/blocks/PhotoSizes.tpl to change the dropdown to a list and save it as :
modules/core/templates/blocks/local/PhotoSizesNoDrop.tpl

The file PhotoSizesNoDrop.tpl is a mixture of HTML and Smarty. There is tutorials via google for both.

Dave

____________________________________________________
Blog with G2 || Gallery Frames / Mods || G1 Test Gallery

 
XCOM

Joined: 2002-12-30
Posts: 474
Posted: Tue, 2010-12-14 18:20

Hi,

If somebody is interested: I have searched for a solution few days ago to change the drop down code and published the solution now in my gallery blog http://www.it-pulse.eu/webanwendungen/menalto-gallery/gallery2-bessere-auswahlmoeglichkeit-der-bildaufloesungen-1412.html

Here you can see a Photo Example in my Gallery with the opinion to select the resized image below the photo.

________________________________________
[G2] Wallpaper | Gallery Blog | G3(dev) Barcelona Fotos