ZenphotoCMS Forum
zpArdoise album photos layout change galleriffic layout - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: zpArdoise album photos layout change galleriffic layout (/thread-9313.html)



zpArdoise album photos layout change galleriffic layout - weave@rohair.com - 23-11-2011

Adapting the zpArdoise theme, I want to have the album layout change based if the album contain panoramic photos.

What I have right now is some extra code in the header to modify the gallerific script, and similar code in album.php to alter the layout to allow panoramic photos to cover the width of the wrapper. I use the following to accomplish this:

A comparison of the results is here:
http://rogallery.rohair.com/Collections/longscapes
http://rogallery.rohair.com/Favorites

HERE IS MY QUESTION:
Instead of using getAlbumTitle(), is there another parameter that can be set. For example, could there be a logical field (true/false) in the database that I as a user could be used to indicate albums that contain panoramic photos? (I would like to have several that ONLY contain panos)

Thanks for any direction that could be provided




zpArdoise album photos layout change galleriffic layout - acrylian - 23-11-2011

You are probably looking for this:
http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functionisLandscape

Since a landscape image must not necessarily a panoramic one the easiest would be to use a specific tag to check or one of the fields like custom data, location etc. to store a specific value.

Everything else would probably involve some more custom coding.




zpArdoise album photos layout change galleriffic layout - vincent3569 - 25-11-2011

maybe, you could have a look on this layout of galleriffic http://www.twospy.com/galleriffic/example-5.html and try to use it on your specific layout.

you have a similar result here : http://afifsay.com/