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

List style

2 posts, 0 answered
  1. Ana Cepeda
    Ana Cepeda avatar
    2 posts
    Registered:
    05 Mar 2010
    16 Mar 2010
    Link to this post
    Hi,
    I want to change the style of a list I have created in my Sitefinity. I use the 3.7 version.
    I want to put images in the bullets and delete the list title.

    I have visited this post:

    http://www.sitefinity.com/support/kb/sitefinity-3-x/how-to-map-a-view-to-an-external-template-in-sitefinity-3-6-or-later.aspx

    but I'm afraid it doesn't help me, as I can't find some of the files referred here, for instance ExternalTemplates.zip. In fact, I'm not sure this is the right way to modify my list style.

    I'm not an expert in .NET developing, so I would be grateful if you provide me all instructions.

    Thank you very much.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    16 Mar 2010
    Link to this post
    Hello Ana Cepeda,

    I checked your account and the External template archive is available for your account

    Your Account/Downloads/ Sitefinity Standard Edition

    #  Standard edition External Templates for .NET 3.5   (zip, 653 KB)

    # Standard edition External Templates for .NET 2.0 (zip, 647 KB)

    You can hide the title of a list, but you cannot remove the control from the template, because it is required. Generally the control supports about six modes, so it really depends on which mode you are going to modify. For instance ExpandableListView.ascx template is used for Expandable List presentation mode. The tile of a given list is represented by a simple literal added to the template

    <asp:Repeater ID="lists" runat="server">
        <ItemTemplate>
            <h2 class="sf_listTitle"><asp:Literal ID="listTitle" runat="server"></asp:Literal></h2>

    inside the first repeater ( highlighted above) of the control. You can set the Literal property Visible to false which will hide the title of the whole list.

    Inside the same template there is another repeater called with ID="listItems", where the listitem title is represented by <a> element  headline and the content is wrapped in a div

    <li>
     <h3 id="headlineContainer" runat="server" class="sf_listItemTitle">
    <a id="headline" runat="server" title="<%$Resources:ClickToExpand %>"></a></h3>
        <div id="contentContainer" runat="server" class="sf_listItemBody" style="display:none;">
         <asp:Literal ID="content" runat="server"></asp:Literal>
           </div>
      </li>

    As you can see from the code snippet above the headline and content forms a list element.
      
    Kind regards,
    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