Changing the Detail View of News Items

Posted by Community Admin on 03-Aug-2018 03:31

Changing the Detail View of News Items

All Replies

Posted by Community Admin on 10-Dec-2011 00:00

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

Posted by Community Admin on 11-Dec-2011 00:00

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.

Posted by Community Admin on 11-Dec-2011 00:00

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!

This thread is closed