Tip

Thumbnailed image library

Create an image library, with thumbnail views for the Web.

For the view to work, you must create a form with a rich text field to hold your thumbnail image. The code that follows can go either into a column in your view for the Web or, more efficiently, into a hidden field on your form.

It will pull the thumbnail image from your form and make it a clickable link in the view, assuming your thumbnail Rich Text Field is called 'Thumbnail'.


"[<a href = /database.nsf/webview/"+@Text(@DocumentUniqueID)
+"?OpenDocument><img src=/database.nsf/webview/"+@Text
(@DocumentUniqueID)+"/Thumbnail/0.70?OpenElement&FieldElemFormat=gif border
= 0></a>]"

This was first published in August 2001

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.