More in this section
Forums / General Discussions / Changing the Detail View of News Items

Changing the Detail View of News Items

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
3 posts, 0 answered
  1. Leon Williams
    Leon Williams avatar
    20 posts
    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" .


  2. vitako
    vitako avatar
    22 posts
    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.
  3. Tim
    Tim avatar
    258 posts
    22 Jun 2011
    11 Dec 2011
    Link to this post

    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}" />

    Hope that helps!
3 posts, 0 answered