Changing the Detail View of News Items
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
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.
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
>