Photo gallery thumbnail on index page
9 posts by 6 authors in: Forums > CMS Builder
Last Post: January 26, 2010 (RSS)
I have a site that uses CMSB with Lightbox 2.0. You can see the index page here: http://www.joyoftravel.ca/picture.php.
I'd like the first thumbnail from each gallery to appear next to the title of that gallery. When I try to do this, it shows all of the thumbnails for the gallery, but I obviously only want the first one to show up.
Can someone advise how this can be done, please?
Cheers,
Common Sense Design: User-focused Web design
Tel: 001 519 342 5348 | Web: www.commonsensedesign.net
Re: [NigelGordijk] Photo gallery thumbnail on index page
I have the exact same problem and have yet to find a solution.
If anyone can help solve this it would be great!
northernpenguin
Northern Penguin Technologies
"Any sufficiently advanced technology
is indistinguishable from magic."
........Arthur C. Clarke
Re: [northernpenguin] Photo gallery thumbnail on index page
For now, a simple solution might be to add a single list page image upload field to your record.
It's not as elegant, but it will allow you to choose the "PR" image for the list page separate from the gallery images, so when a visitor clicks on the gallery they don't see the same image immediately.
best,
Jerry Kornbluth
Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php
Re: [gkornbluth] Photo gallery thumbnail on index page
Thanks for your suggestion. I did think of that, but was hoping there was a easier solution (from the client/end user's point of view)
Common Sense Design: User-focused Web design
Tel: 001 519 342 5348 | Web: www.commonsensedesign.net
Re: [NigelGordijk] Photo gallery thumbnail on index page
By flamerz - January 23, 2010
<?php if ($record['uploads'][0]['hasThumbnail']): ?>
<img src="<?php echo $record['uploads'][0]['thumbUrlPath'] ?>" width="<?php echo $record['uploads'][0]['thumbWidth'] ?>" height="<?php echo $record['uploads'][0]['thumbHeight'] ?>" alt="" /><br/>
<?php endif ?>
just insert this inside your main foreach listingRecords.
i hope this works.
Re: [flamerz] Photo gallery thumbnail on index page
Thank you so much.
Common Sense Design: User-focused Web design
Tel: 001 519 342 5348 | Web: www.commonsensedesign.net
Re: [NigelGordijk] Photo gallery thumbnail on index page
By Donna - January 25, 2010
<?php if ($upload['hasThumbnail']): ?>
<a href="<?php echo $record['_link'] ?>"><img src="<?php echo $upload['thumbUrlPath'] ?>" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" /></a>
<?php break; ?>
<?php endif ?>
Hope this helps. :)
--
support@interactivetools.com
Re: [Donna] Photo gallery thumbnail on index page
Common Sense Design: User-focused Web design
Tel: 001 519 342 5348 | Web: www.commonsensedesign.net
Re: [Donna] Photo gallery thumbnail on index page
By Codee - January 26, 2010