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

Forums / Designing with Sitefinity / change order of items in NewsView

change order of items in NewsView

2 posts, 0 answered
  1. noam
    noam avatar
    5 posts
    Registered:
    18 Mar 2009
    29 Mar 2009
    Link to this post
    hi

    i'm using a simple NewsView to display the news.
    the default order of items is : Title, Date, Summary.
    i would like to have the Date first, followed by the Title and Summary.

    can you give me a direction on how to accomplish that ?

    thanks,
    Noam.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    29 Mar 2009
    Link to this post
    Hi noam,

    You could change ListPageMaster and ListPageDetails templates that shows news items on the front end of Sitefinity.

    Here is an example:

    <asp:HyperLink ID="backLink" runat="server" Text="<%$Resources:GoBack %>"></asp:HyperLink> 
    <asp:Repeater ID="repeater" runat="server">  
        <HeaderTemplate> 
            <ul class="sf_newsList">  
        </HeaderTemplate> 
        <ItemTemplate> 
            <li> 
                <class="sf_newsDate">  
                    <asp:Literal ID="Publication_Date" runat="server" Text="{0}" /> 
                </p> 
                <h2 class="sf_newsTitle">  
                    <asp:HyperLink ID="HyperLink1" runat="server">  
                        <asp:Literal ID="Literal1" runat="server"></asp:Literal> 
                    </asp:HyperLink> 
                </h2> 
                <p> 
                    <asp:Literal ID="Summary" runat="server" Text=""></asp:Literal> 
                </p> 

    If you are using 3.6 you should map these templates.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
2 posts, 0 answered