Hiding Author field in News - Front- & Back-End Development - Front- & Back-End Development - Progress Community
 Front- & Back-End Development

Hiding Author field in News

  • Hiding Author field in News
  • Hello all,

    I am new to Sitefinity and very happy to find this resource!

     We are using Sitefinity 6.3. I am posting press releases using the News content item and would like to know if there is a way to hide the Author field and possibly date, from the posted content. Right now it looks a little silly repeating the author and the date. Is there a way to hid or remove? Any suggestions would be greatly appreciated! Thanks!

    ========================
    Press Release Title Here
    by Author | Nov, 03 2014
    The press release summary text goes here...

    New York, NY - 3 November 2014: ABC Corp announced today....
    ===========================

     

    Rhode Island Novelty® Presents its New 2015 products at North America’s Largest Gift Show

    by Diane Saia | Nov 01, 2014
  • Hello Michael,

    Thank you for contacting us.

    You can easily remove author and publication date of news items by editing the template for News widget or applying a new widget template.

    The code that needs to be removed from the news widget template is:

    <asp:Literal Text="<%$ Resources:Labels, By %>" runat="server" />
    <sf:PersonProfileView runat="server" /> | <sf:FieldListView ID="PublicationDate" runat="server" Format="PublicationDate.ToLocal():MMM dd, yyyy" />

    In order to edit or create a widget template, you need to navigate to Design > Widget Templates and open the template you wish to edit. Then find the code above and remove it.

    Here is a link to Sitefinity documentation for creating and editing widget templates.
    http://www.sitefinity.com/documentation/documentationarticles/designer-s-guide/widget-templates/using-the-widget-templates-editor/creating-and-editing-widget-templates

    Hope this is useful for you.

    Regards,
    Miroslava
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  • Thank you!