By ericinwisconsin on
I'm using the excellent Composite Layout to create page layouts. In one content type, I'm using Imagefield to allow node creators to upload four images. Those four images display on the page in a vertical line, one atop the other, like this:
Image 1
Image 2
Image 3
Image 4
Is there a way to get them to display in a 2x2 grid, like this:
Image 1 Image 2
Image 3 Image 4
I know it can be done in contemplates with a little php coding, but using contemplates will screw up the Composite Layout.
Comments
Views, perhaps?
I don't have any experience with the composite layout module, but have you considered using views instead? It's very straightforward to do this in views - although you would have to tell me whether views integration is supported in composite layout.
Hi, Mallory. Thanks for the
Hi, Mallory. Thanks for the reply!
Granted, Views would allow those images to appear in a grid, but not as part of a node (correct?). It's probably something that can be done in Panels, but Composite Layout is a very simplified replacement for Panels that I find much easier to use. For an example of the imagefield in question, here's a link to one of my pages. BE WARNED: While there's no actual nudity on the page listed here, there's some on the website. Don't want to offend anyone.
http://www.vintagegirliemags.com/matrix/casanova/casanova-vol-1-no-1-may...
Below the magazine cover are five images from inside the magazine. They're too large to fit in a 2x2 grid on the left side of the page, but that's easily corrected. The question is just can I create a grid to display them in on the node page?