Before and After pics

spyderbytes
spyderbytes's picture

Joined: 2008-11-09
Posts: 1
Posted: Wed, 2010-08-04 15:26

I'm building a site for a construction company that has boatloads (client says literally thousands) of "before and after" pics. They want them divided by category (kitchens, bathrooms, etc.) and want to be able to add/remove/modify images themselves. Seems like the perfect job for Gallery. But where my knowledge breaks down is how to associate the images into "before and after" sets within the category. Any thoughts?

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Thu, 2010-08-05 16:17

I don't think Gallery is the right tool for this and as your client has custom wants, you will have to write a custom solution for them ... at least I would.

1. Create an upload form interface that take two images for before and after and that will not upload unless both are present.
2. Associate them in a DB at upload time with a unique key
3. Use key to display them together at viewing time
4. Use key to delete both if one is deleted.
5. Sort out presentation and prettification afterwards

You could of course hack Gallery to bits to do this but I think you'll be better off just writing it from scratch.

--
dakanji.com