Thumbail Image Selector Preview

Posted by Community Admin on 04-Aug-2018 13:20

Thumbail Image Selector Preview

All Replies

Posted by Community Admin on 30-Apr-2012 00:00

Does anybody know how to display a preview of the image selected when implementing the Thumbnail Selector as per this blog post:

http://www.sitefinity.com/blogs/slavoingilizov/posts/11-09-09/extend_the_image_selector_for_content_items_with_filtering_by_album.aspx 

It isn't very user friendly to just have a guid shown.

Posted by Community Admin on 03-May-2012 00:00

Hi Quba - 

Check out this post: http://www.sitefinity.com/blogs/joshmorales/posts/11-10-05/selecting_sitefinity_4_content_inside_widget_designers.aspx. It shows you how to implement the image field with thumbnail preview. However, this works by using the url of the image which can change. If you're not worried about that, then this should work for you. Otherwise, you'll need to inherit from the ImageField and implement your own logic.

Hope this helps!


Cheers,
Josh

Posted by Community Admin on 03-May-2012 00:00

@Josh

Actually, you can use the ImageSelector to save the GUID and still display the preview, by initialising with the mediaUrl, as per my post on this thread.

http://www.sitefinity.com/devnet/forums/sitefinity/developing-with-sitefinity/creating-custom-content-blocks-where-the-user-can-select-an-image.aspx

HTH.

This thread is closed