Photo gallery in CMS Builder

6 posts by 3 authors in: Forums > CMS Builder
Last Post: April 21, 2009   (RSS)

A couple of photo gallery questions:

1. Is it possible to build a gallery in CMS Builder that will function like this? http://trafalgars.com/gallery.html. i.e. click on a thumbnail and the larger version appears in a popup?

2. Can CMS Builder create square thumbnails, rather than just smaller versions of the full-sized image?

Thanks!
Nigel Gordijk

Common Sense Design: User-focused Web design
Tel: 001 519 342 5348 | Web: www.commonsensedesign.net

Re: [NigelGordijk] Photo gallery in CMS Builder

By Dave - December 31, 2008

Hi Nigel,

1. Yes, it can be done all with just HTML tags. That page (and our own CMS Builder product page) use this library: http://huddletogether.com/projects/lightbox2/

2. No, it's not possible right now without custom programming (email me if you want to discuss that). We've had a previous request for it though and will likely revisit it in the next few versions. There's some issues around how to align the crop and things like that to sort out.

Hope that helps, let me know if you need anything else.
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Photo gallery in CMS Builder

Thanks for the help, Dave.
Nigel Gordijk

Common Sense Design: User-focused Web design
Tel: 001 519 342 5348 | Web: www.commonsensedesign.net

Re: [NigelGordijk] Photo gallery in CMS Builder

By InHouse - April 20, 2009

Just stumbled on this issue and thought of an old trick that I used once that might help issue #2.

Use a transparent GIF in any square dimensions you wish as the actual image to be displayed. Put that image in a span or a div depending on your needs. Then use a style rule to set the background-image source to the thumbnail generated by CMSB. Set the vertical and horizontal positioning to 50% each and you should be able to get square thumbnails for your design.

Some limits apply regarding the minimum size of the thumbnails but you can control this in CMSB. It's not the most elegant solution but it should work. YMMV.

J.

Re: [InHouse] Photo gallery in CMS Builder

Thanks for the suggestion, InHouse.

The problem is, none of the original photos are square to start with, so forcing a portrait or landscape image into a square will distort how it appears on the page.

Also, centring the picture won;t work either, because not all of the shots have the main interest in the middle; some are off to the left or right.
Nigel Gordijk

Common Sense Design: User-focused Web design
Tel: 001 519 342 5348 | Web: www.commonsensedesign.net