access resized version, how?

thomaswestin

Joined: 2005-07-23
Posts: 34
Posted: Thu, 2009-02-12 22:39

Hey all,

I'm pretty new to Gallery when it comes to coding so please have patience with me :)

I've modified the Matrix theme to show full size images in an album instead of thumbnails, which works fine with original files. In album.tpl I'm using:

{g->image item=$child image=$child}

This always presents the originally uploaded file, but how do you get the resized /transcoded version (I'm using the FLV module for video files)?

The current version is available at
http://hades.dsv.su.se/gallery2/main.php?g2_itemId=583

Best regards
Thomas Westin

 
thomaswestin

Joined: 2005-07-23
Posts: 34
Posted: Thu, 2009-02-19 19:51

Please, if someone have any input, it would be very appreciated.

Any directions to where in the documentation that I can find this out?

Thanks,

/Thomas

 
thomaswestin

Joined: 2005-07-23
Posts: 34
Posted: Thu, 2009-02-26 12:20

OK found some stuff but still don't get it - since no one in the community seems to know, if anyone from the Gallery team could respond I would be very appreciated

At http://gallery.menalto.com/node/47353 there is a code snippet for getting the URL of resized images, which I've inserted into my Matrix theme.inc file, in the ShowAlbum function, just before the return statement.

But what do I in the album.tpl file? I've tried many variants e.g:
{g->image item=$resizedId image=$resizedId}
and
{g->image item=$theme.resizedId image=$theme.resizedId}

but all I get is a render error

/Thomas

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Thu, 2009-02-26 19:06

I can't answer your question directly. But if you put gallery into debug mode you get a pop-up with all the smarty variables you can use in templates.

 
thomaswestin

Joined: 2005-07-23
Posts: 34
Posted: Fri, 2009-02-27 12:57

Hi Alec,
Thanks for responding!
Debugger - that's good news for a Gallery n00b, can't believe I missed that feature. I'll check it out

/Thomas