Sign in

E-mail *, (xx@domain.com)
Password *

Register | Forgot password

Thumbnail for Download element

The "WCB: JSP front-end design" forum contains threads on issues that are related to JSP front-end design while programming a WCB (WebManager Component Bundle). The Presentation & Element component contain JSPs that will be used for front-end rendering. Ask your questions related to these JSPs here. Some example topics: integration of AJAX, use of the taglibs, how to handle multiple websites, and so forth.

Answered
Not marked as answered yet

Forums  >  WCB: JSP Front-end design  >  Thumbnail for Download element


Author Thumbnail for Download element
Cthulhu



Posts: 212

Posted: 01-03-2010 10:51

Hey guys,

I've got four open issues in our issue tracker, all requesting roughly the same thing: Thumbnails for download elements. For some of our sites, we offer an image people can download and color in (*sugar* CRAYONS CRAYONS CRAYONS CRAYONS!). This is set as a download element, and offered as such.

However, this isn't very neat for the user - they want to be able to see what they're downloading. A thumbnail, if you will. Of course, this can be implemented by adding an image in front of the download element and style that, but that's not as friendly as it can be.

So my question: Can you cast a MediaItemDownloadVersion object to a MediaItemImageVersion in JSP, and if so, how? And, more importantly, is this recommended, or should I find a different solution?

patricka



Posts: 280

Posted: 01-03-2010 10:57 Solved

Why not simply make a design that shows the thumbnail, based on the assumption that the download file contains an image? I'm thinking along the lines of:

<wm:image var="photo" url="http://www.gx.nl/images/picture.jpg"
alternat iveText="a picture" ></wm>
${photo.htmlTag}



(Copy/pasted straight from the tag library quick reference)

Greetings,

Patrick

Back to top

New message: "Thumbnail for Download element"
Message:
bold boitalicd underline url quote code smile cool eek grin mad razz sad wink
 
© 2012 GX Software B.V.

Disclaimer

This website (Connect.gxsoftware.com) may discuss or contain opinions, (sample) coding, software or other information that does not include GX official interfaces, instructions or guidelines and therefore is not supported by GX. Changes made based on this information are not supported.  GX will not be held liable for any damages caused by using or misusing the information, software, instructions, code or methods suggested on this website, and anyone using these methods does so at his/her own risk. GX offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this website, including any liability resulting from incompatibility between the content of this website and the materials and services offered by GX. By using this website you will not hold, or seek to hold, GX responsible or liable with respect to the content of this website.