Help creating if then statement in singleimage.tpl

lvthunder

Joined: 2003-09-12
Posts: 808
Posted: Mon, 2005-02-14 00:14

I am trying to make it when you click on the sized picture it will bring up the full size picture and when you click the full size picture it will bring up the sized picture. How would I do that?

Also is there anywhere to see what all the gallery specific smarty tags are and what they do.

Thanks,

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Mon, 2005-02-21 23:24

The various imageViews are all stored in the $layout.imageViews variable. If you look at how we build the sizes dropdown list you can see how to create urls to each of the different sizes. You can wrap the image in an <a> and set the href to be one of the different imageViews to be able to link back and forth. You'll have to play with that a bit.

Unfortunately there's no documentation on our smarty tags at the moment. You can look in modules/core/classes/GalleryTemplateAdapter.class to see what we provide as {g->xxx} tags, but you'll have to read the code a bit to see what they all do :-/