![]() |
|
fixed height thumbnails with bespoke class for landscape and - 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: fixed height thumbnails with bespoke class for landscape and (/thread-11106.html) |
fixed height thumbnails with bespoke class for landscape and - lainyrache - 2013-06-03 I am trying to get a fixed height for my thumbnails plus add a different class for syling purposes to landscape and portrait thumbs ( similar request as this old post) I have tried using islandscape and maxthumb in various configurations and can't get the syntax right. if landscape fixed height thumbnails with bespoke class for landscape and - acrylian - 2013-06-03 For fixed height/widths within w x h you can use the set of maxspace functions. What is the exact code you are using? We have fixed height thumbnails with bespoke class for landscape and - lainyrache - 2013-06-04 Hi } else { } Anywhere near? fixed height thumbnails with bespoke class for landscape and - lainyrache - 2013-06-04 ( sizes are just sample to check if it works) } else { } ? fixed height thumbnails with bespoke class for landscape and - acrylian - 2013-06-04 Generally that is correct regarding the landscape (please think of escaping code examples using "auto width" is no concept the image processor knows of. It needs concrete values. The maxspace functions are meant to define a max width and max height "box" no image no matter what orientation it has exceeds. So fixed height thumbnails with bespoke class for landscape and - lainyrache - 2013-06-05 HI Acrylian Great thank you. I now have image thumbs with maxspace. I was also trying to get this on albums and used printCustomAlbumThumbMaxSpace One thing ( i am not sure how to describe this so it makes sense?) I also want to add a class with different padding and margins for portrait and landscape but can't get the if statement to work. fixed height thumbnails with bespoke class for landscape and - acrylian - 2013-06-05 You are doing it correctly, except that the class name should be within quotes (strings always must) and there is one bracket too much in the if (you should get an error on that, unless it is just a typo here). fixed height thumbnails with bespoke class for landscape and - lainyrache - 2013-06-06 That was it. I missed the extra bracket and the quotes. Thank YOU! fixed height thumbnails with bespoke class for landscape and - acrylian - 2013-06-06 Use the get variant and build the `` tag directly: http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functiongetCustomSizedImageThumbMaxSpace fixed height thumbnails with bespoke class for landscape and - lainyrache - 2013-06-06 that did it.. smashin! thank you.. |