Or, how about a placeholder for thumbnail height or width? Then I can use PHX for a conditional based on the thumbnail size?
If you just want to change your HTML based on the thumbnail size (so portraits appear in a more appropriate layout), then you can do that by editing the MaxiGallerySolo snippet. Just get the random image you want to show and use getimagesize (
http://www.php.net/manual/en/function.getimagesize.php) to figure out if it’s portrait (height>width), landscape, or square. Then change the output to whatever is appropriate for that type of image.
Use MaxiGallery 0.5, it has MaxiGallerySolo features and placeholders for picture heights/widths.
"He can have a lollipop any time he wants to. That's what it means to be a programmer."
You use the placeholders in maxigallery templates
"He can have a lollipop any time he wants to. That's what it means to be a programmer."
I could not reproduce this error, do you have more information? What kind of site tree etc..
I made some changes to the random order thing, so if you are still having problems, try the SVN code. Seems to work fine at least for me.
"He can have a lollipop any time he wants to. That's what it means to be a programmer."