Try Now
More in this section

Forums / Developing with Sitefinity / Custom News Type List

Custom News Type List

2 posts, 0 answered
  1. Laura
    Laura avatar
    311 posts
    25 Feb 2008
    05 Oct 2010
    Link to this post
    I am looking for some advice on how to best approach this.
    I need to display a list of news type items on a page. These will be more like lists and would use the following fields:
    Publication Date
    Expiration Date

    There will not be a Detail page for these items. I do not want the Title to be clickable for further details.

    Should I:
    Start with the news control and modify the ListPageMaster to only display what i want and remove the hyperlink from the Title in the template?
    Use the Lists module and somehow (if possible) add the publication and expiration date... and how would/could I do that?
    Thank you.

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    25 Oct 2016
    05 Oct 2010
    Link to this post
    Hi Laura,

    Map the external template for NewsView  - ListPageMaster.ascx through ItemListTemplatePath property of the control. Then open the control and remove the HyperLink with ID="fullcontent1", but keep the Literal with ID="Title"

    <h2 class="sf_newsTitle">
      <asp:Literal ID="Title" runat="server"></asp:Literal>              

    Then set BehaviorMode property Master

    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