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

Forums / General Discussions / Sitefinity 3.7 SP3

Sitefinity 3.7 SP3

6 posts, 0 answered
  1. Hydo L
    Hydo L avatar
    98 posts
    Registered:
    31 Mar 2010
    16 Feb 2011
    Link to this post
    Hi,
    I am using Sitefinity 3.7 sp3 for my website. I want to know if there is any way to add a thumbnail to each items in the document libraies and display it in download list. Please provide help for me with a sample code.

    Thanks,
    Hydo
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    16 Feb 2011
    Link to this post
    Hello Hydo L,

    Please take a look at our User Manual , page 214  section Adding Custom Fields.

    Greetings,
    Ivan Dimitrov
    the Telerik team
  3. Hydo L
    Hydo L avatar
    98 posts
    Registered:
    31 Mar 2010
    16 Feb 2011
    Link to this post
    I added custom fields., Please see the attached screen shots for back end. edit view and preview.

    See below code on my Sitefinity/controltemplates/Library/DownloadList.ascx But I can not see the images in the front end. Please advice.


    <%@ Control Language="C#" %>
    <%@ Register Assembly="Telerik.Cms.Engine" Namespace="Telerik.Cms.Engine.WebControls" TagPrefix="sfWeb" %>
    <telerik:CssFileLink ID="CssFileLink1" FileName="" Media="screen" runat="server" EmbeddedFileName="Telerik.Libraries.Resources.ControlTemplates.Frontend.librariesCommonLayout.css"  />
    <asp:HyperLink ID="backLink" runat="server" Text="<%$Resources:Items_GoBack %>" />
    <asp:Repeater ID="repeater" runat="server">
        <HeaderTemplate>
         <%--<ol class="sf_libraryList">--%>
        </HeaderTemplate>
        <ItemTemplate>    
         <table>
                    <tr>
                        <td width="151px">
                            <asp:PlaceHolder ID="ThumbnailHolder" runat="server">
                                <p class="sf_newsThumbnail">
                                  <asp:Image ID="Thumbnail" runat="server" Width="100px" Height="100px" /></p>
                            </asp:PlaceHolder>
                        </td>
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    16 Feb 2011
    Link to this post
    Hi Hydo L,

    What is the value you have set for Thumbnail? I think that this is the problem here. You can also observe the HTML of the public control.

    Greetings,
    Ivan Dimitrov
    the Telerik team
  5. Hydo L
    Hydo L avatar
    98 posts
    Registered:
    31 Mar 2010
    16 Feb 2011
    Link to this post
    I am sorry, I didn't understand your question ,"What is the value you have set for Thumbnail?"
    If I use asp label or literals with ID Thumbnail the image URL is coming up. Please see the attachment

    In web config I decalre Thumbnail as below.
    <add key="Libraries.Thumbnail" valueType="ShortText" visible="True" searchable="False" sortable="False" defaultValue=""/>
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    17 Feb 2011
    Link to this post
    Hi Hydo L,

    As you can see you are passing the dynamic link. You should resolve it. Please take a look at resolving dynamic links

    Greetings,
    Ivan Dimitrov
    the Telerik team
Register for webinar
6 posts, 0 answered