More in this section

Forums / General Discussions / Changing the Detail View of News Items

Changing the Detail View of News Items

3 posts, 0 answered
  1. Leon Williams
    Leon Williams avatar
    20 posts
    Registered:
    18 Mar 2010
    10 Dec 2011
    Link to this post
    The news items list the title and just under the title it displays "by" <owner>| <publish date>
    I dont want to show the "owner" or the person who entered the news item at all.  The publish date is fine to display.  The news item is presented as company news and not from a single user.  How do I hide the display of "by" <owner> |  and replace it with "Date Published:"
    when I view the source on the page the,  div class="sfnewsauthorandDate" .

    Thanks
    leon

  2. vitako
    vitako avatar
    22 posts
    Registered:
    28 Feb 2010
    11 Dec 2011
    Link to this post
    Hi sitefinity team,
    I wanted to subscribe to this post but cannot find the link to do it without replying to the post.
    Please see the image attached.
    Was this option removed?? I think you had it before.
    Thanks.
  3. Tim
    Tim avatar
    258 posts
    Registered:
    22 Jun 2011
    11 Dec 2011
    Link to this post
    Leon,

    You can modify the way news items look by editing the widget template they use. You can view them all by going to Design -> Widget Templates
    Once you're there, find the "Full news item" template and click on the title to edit it. Replace the "sfnewsAuthorAndDate" with the snippet below to get what you're after.

    <div class="sfnewsAuthorAndDate">
        Date Published: <sf:FieldListView ID="PublicationDate" runat="server" Format="{PublicationDate.ToLocal():MMM dd, yyyy}" />
    </div>

    Hope that helps!
3 posts, 0 answered