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
    18 Mar 2009
    29 Mar 2009
    Link to this post

    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 ?

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    19 Apr 2017
    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">  
            <ul class="sf_newsList">  
                    <asp:Literal ID="Publication_Date" runat="server" Text="{0}" /> 
                <h2 class="sf_newsTitle">  
                    <asp:HyperLink ID="HyperLink1" runat="server">  
                        <asp:Literal ID="Literal1" runat="server"></asp:Literal> 
                    <asp:Literal ID="Summary" runat="server" Text=""></asp:Literal> 

    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