close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Calling [Filename]_Thumb

Thread began 11/20/2009 9:25 am by jmifsud371062 | Last modified 11/23/2009 1:44 pm by Eric Mittman | 1059 views | 4 replies |

jmifsud371062

Calling [Filename]_Thumb

Hi,

I have followed the digital file pro to insert and update pages pdf but im having some problems.

I am doing a portfolio page showing the latest work using the lightbox. Now the problem that im having is that I got stuck on how to call the [Filename_Thumb] because in the digital file pro I set that when I upload the image it will create a thumb for it. I hope it is clear. Any help?

<a href="images/portfolio/web/<?php echo $row_PortfolioImage['PortfolioImg']; ?>" title="Title goes here"><img src="images/portfolio/web/thumbs/[How can i call the thumb?]" rel="web" alt="alt goes here" title="title goes here"></a>

Sign in to reply to this post

neilo

What happens when you use:

<a href="images/portfolio/web/<?php echo $row_PortfolioImage['PortfolioImg']; ?>" title="Title goes here"><img src="images/portfolio/web/thumbs/<?php echo $row_PortfolioImage['Filename_Thumb']; ?>" rel="web" alt="alt goes here" title="title goes here"></a>



Does that not display the thumbnail?

Sign in to reply to this post

jmifsud371062

No its not :(

Could it be that I do not have a second field in my portfolio table called PortfolioImgThumb?

Sign in to reply to this post

neilo

If the main image upload folder is 'web', and the thumbs upload folder is 'web/thumbs', and if you set the upload filename for both image and thumb to [FileName], then both image and thumb will have the same filename (i.e. the name of the original image). You would reference one (Large) from the 'web' folder and the other (thumb) from the 'web/thumbs' folder.

So in your scenario, to reference the large from the thumb, you would have:

<a href="images/portfolio/web/<?php echo $row_PortfolioImage['PortfolioImg']; ?>" title="Title goes here">
<img src="images/portfolio/web/thumbs/<?php echo $row_PortfolioImage['PortfolioImg']; ?>" rel="web" alt="alt goes here" title="title goes here"></a>



Both would be 'PortfolioImg'. You wouldn't need another column in the table, as the image just has one name.

Also completely misunderstood you last time, sorry about talking rubbish.

Sign in to reply to this post

Eric Mittman

In your DFP Upload server behavior where you set the thumbnail image properties you set the name for it here as well. The default is to add in _thumb to the [filename] value. If you are renaming the thumb like this then you should be storing this value in your db in another column. How are you setting the name of the thumbnail in the upload server behavior?

If your thumbnail has the exact same name but is just in a different directory you should be able to use the same recordset binding as you are for the link but just specify the thumbs directory, just like in neilo's last suggestion.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...