Home | Products | Consulting | Forums | Support | Order | 1-800-752-0455
  Main
Index
Search
Posts
Who's
Online
Log
In

Home: Products: CMS Builder:
"Upload" command - does it allow gallery with linked thumbnails?

 

 


meg
Novice

Jun 27, 2008, 11:12 AM

Post #1 of 4 (332 views)
Shortcut
"Upload" command - does it allow gallery with linked thumbnails? Can't Post

I'm working on creating a gallery section and I'm using the "upload" field type. Ideally, I'm trying to create a gallery that has thumbnails you can click on to see a larger version on the image. I would also like it to include a title and caption.

In the back-end interface, I can enter a title and caption. However, is this information only for the back-end or can this information show up on the gallery page? Also, I know how to create thumbnails with blank targets for viewing the larger images using wyslwyg but I assumed that the "upload" field type would simplify that and create it using one step - is that true or does it just upload an image to the page using the thumbnail size you specify.

Please help so I can make my gallery! Thank you thank you!
Meg


Jake
Staff / Moderator


Jun 29, 2008, 3:13 PM

Post #2 of 4 (308 views)
Shortcut
Re: [meg] "Upload" command - does it allow gallery with linked thumbnails? [In reply to] Can't Post

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:


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

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


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


Code
<?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:


Code
<?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. Smile
-----------------------------------------------------------
Cheers,
Jake Swanson - 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.



meg
Novice

Jun 30, 2008, 7:57 AM

Post #3 of 4 (285 views)
Shortcut
Re: [meg] "Upload" command - does it allow gallery with linked thumbnails? [In reply to] Can't Post

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


Donna
Staff / Moderator


Jun 30, 2008, 11:18 AM

Post #4 of 4 (281 views)
Shortcut
Re: [meg] "Upload" command - does it allow gallery with linked thumbnails? [In reply to] Can't Post

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


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.

 
 
 


Search for (options)
Products
CMS Builder
Article Manager
Realty Manager
Listings Manager
Order Now
Services
Priority Consulting
Support
Online Documentation
Support Forums
Support Homepage
Company Info
12 reasons to choose us!
Meet the team
Monthly newsletter
Contact Us
Toll Free: 1-800-752-0455
Phone: (604) 689-3347
Sales | Support
Conditions of Use | Privacy Policy | Copyright © interactivetools.com 2008
#201 - 2730 Commercial Drive, Vancouver BC Canada V5N 5P4