+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Add thumbnail in custom GC Module

Add thumbnail in custom GC Module

2 posts, 0 answered
  1. Tarun
    Tarun avatar
    81 posts
    Registered:
    14 Jan 2009
    19 Sep 2011
    Link to this post
    HI,

    I am trying to add a thumbnail in GC module. I am able to add select control which select image from Library but the image does not appear on front end user template. I added the below code on the front end template but image does not appear. I can see this meta field in Admin template.

    Code in front end template:

    <asp:PlaceHolder ID="ThumbnailHolder" runat="server">
                    <p ><asp:Image ID="Thumbnail" runat="server" /></p>
                </asp:PlaceHolder>


    Please check attached screenshot.

    Thanks,
    Tarun
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    20 Sep 2011
    Link to this post
    Hello Tarun,

    1. Check if the url to the image is correctly set on the front end
    2. Make sure that the metakey name is the same as the ID of the control that is going to display your image.

    As far as I remember you cannot use Image control directly in the public template and you need to set the ImageUrl manually using GetMetaData which will return the value you saved through the backend.

    Regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered