"Upload" command - does it allow gallery with linked thumbnails?

4 posts by 3 authors in: Forums > CMS Builder
Last Post: June 30, 2008   (RSS)

Re: [meg] "Upload" command - does it allow gallery with linked thumbnails?

By Jake - June 29, 2008

Hi Meg,

Thanks for your post!

The title and caption information for uploads can definitely be used on your public pages - these fields are really useful when setting up image scripts with the software. To use these fields, just add these lines of code in the generated upload code for your image upload field where you'd like them to appear:

<?php echo $upload['title'] ?>

<?php echo $upload['caption'] ?>


By default, this is the code used to generate the image tags for thumbnails:

<?php if ($upload['hasThumbnail']): ?>
<img src="<?php echo $upload['thumbUrlPath'] ?>" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" alt="" /><br/>


If you want these thumbnails to link to the full-sized version of the image, you can substitute that code with this:

<?php if ($upload['hasThumbnail']): ?>
<a href="<?php echo $upload['urlPath'] ?>"><img src="<?php echo $upload['thumbUrlPath'] ?>" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" alt="" /></a><br/>


I hope this gets helps Meg - let us know if you have any other questions about this. [:)]
-----------------------------------------------------------
Cheers,
Jake Marvin - Product Specialist
support@interactivetools.com

Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.

Re: [meg] "Upload" command - does it allow gallery with linked thumbnails?

By meg - June 30, 2008

Thanks so much. Another Question...

When I click on the thumbnail, I can view the image in the same window. Is there a way for the image to appear in a separate window. Could I add a target "_blank" or some sort of onclick function to the script?

Thanks again!
meg

Re: [meg] "Upload" command - does it allow gallery with linked thumbnails?

By Donna - June 30, 2008

Hi Meg!

Yep, what it's doing is generating regular HTML, so you can use any sort of HTML that you would normally use. In the "img" tag, feel free to add the target="_blank" and it'll work just fine. :)
Donna

--
support@interactivetools.com