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

Forums / General Discussions / Generic Content List

Generic Content List

2 posts, 0 answered
  1. KMac
    KMac avatar
    133 posts
    Registered:
    15 Dec 2008
    25 Nov 2010
    Link to this post
    I noticed there isn't a widget template to edit for the Generic Content List. Are there still some external templates to use for certain modules like in 3.7 or is this just one that hasn't been implemented yet? I'm sure I can figure out how to make my own but don't want to go down that route if I don't have to.

    Thanks,
    Kalvin
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    25 Nov 2010
    Link to this post
    Hello KMac,

    The control has a property which you can use to map a template. Below is the HTML of the default template

    <%@ Control Language="C#" %>
    <%@ Register TagPrefix="sf" Namespace="Telerik.Sitefinity.Web.UI.ContentUI" Assembly="Telerik.Sitefinity" %>
    <%@ Register TagPrefix="sf" Namespace="Telerik.Sitefinity.Web.UI" Assembly="Telerik.Sitefinity" %>
    <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
     
    <telerik:RadListView ID="List" ItemPlaceholderID="ItemsContainer" runat="server" EnableEmbeddedSkins="false" EnableEmbeddedBaseStylesheet="false">
        <LayoutTemplate>
            <ul class="sfgenericList">
                <asp:PlaceHolder ID="ItemsContainer" runat="server" />
            </ul>
        </LayoutTemplate>
        <ItemTemplate>
            <li class="sfgenericListItem">
                <h2 class="sfgenericTitle">
                    <sf:DetailsViewHyperLink TextDataField="Title" ToolTipDataField="Description" runat="server" />
                </h2>
                <p class="sfgenericMetaInfo">
                    <sf:FieldListView ID="PublicationDate" runat="server" Format="{PublicationDate.ToLocal():MMM dd, yyyy}" runat="server" />
                    <sf:DetailsViewHyperLink ID="itemCommentsLink" runat="server" CssClass="sfgenericCommentsCount" />
                </p>
            </li>
        </ItemTemplate>
    </telerik:RadListView>
    <sf:Pager id="pager" runat="server" NavigationMode="Links"></sf:Pager>


    Greetings,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about 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