in

SharePoint University

Clean slate. Nothing but SharePoint.
Go, SharePoint!

How to customize default Announcements summary view to hide BY line?

Last post 12-12-2007 5:40 AM by aredubbya. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 08-17-2007 8:39 AM

    • fdb1
    • Top 50 Contributor
    • Joined on 06-20-2007
    • Mars

    How to customize default Announcements summary view to hide BY line?

    Hello.  I would like to get rid of the BY line in the default view for Announcements.  The BY line wants to display the user to posted the announcement, which for us is usually not the person who wrote the announcement.  I would like to either be able to remove the BY line from the default view or be able to make it display my own text instead of requiring a field from the Created By user. 

     I know you can assign a different field from the Create By user, but setting this to a blank field still leaves the word 'by' displayed on it's own line.

     I searched around in SharePoint designer to find an object that represents this view, but so far I have had no luck locating it if it exists in SharePoint Designer's view.

     I tried adding my own Author field, but I do not see a way to assign that field to the default summary display.  I need the default summary view because it truncates the amount of the announcement displayed, so I can pack several announcements onto the same page without it being too large.

     Does anyone know how to either:

    1)  Remove the BY link all together from this default summary view for announcements?

    2)  Or assign a different variable to be displayed in this default summary view for the BY line other than a Created By field?

    3)  If neither of those, then does anyone know how to make a new summary view for announcements that looks the same, displays only the first portion of the body text, and appears pretty much the same as the default summary view for announcements?

     Thanks!

  • 09-18-2007 3:01 PM In reply to

    • Cory
    • Top 25 Contributor
    • Joined on 07-30-2007
    • PA

    Re: How to customize default Announcements summary view to hide BY line?

    I had a client that needed both the By line and Modified lines removed.  Converting to XSLT just wasnt working for me although I am just guessing I wasnt coding something correctly.  Anyway you can modify the CDATA located within the WebPart. See below

    This involves removing some CDATA from the WebPart once you add the Announcements WebPart to the site.
     
    You will want to completley remove the following code. This all exsists on one line in the WebPart.
     
    ></HTML><HTML>by </HTML><Field Name="Author"/><HTML><![CDATA[</td><td width=20% align="]]></HTML><HTML>right</HTML><HTML><![CDATA[" nowrap class="ms-vb"> ]]></HTML><Field Name="Modified"/><HTML><![CDATA[</td></tr><tr><td colspan=2 class="ms-vb"> ]]
     
    Remove By Line only: remove code below
     
    ></HTML><HTML>by </HTML><Field Name="Author"/><HTML><![CDATA[</td><td width=20% align="]]></HTML><HTML>right</HTML><HTML><![CDATA[" nowrap class="ms-vb"> ]]
     
    Remove Modified Date only: remove code below
     
    ></HTML><Field Name="Modified"/><HTML><![CDATA[</td></tr><tr><td colspan=2 class="ms-vb"> ]]
     
    To Edit the length of the Body displayed find the following code: (displays amount of words)
     
    ></HTML><ScriptQuote><Switch><Expr><FieldProperty Name="Body" Select="RichTextMode"/></Expr><Case Value="FullHtml"><Limit Len="250" IgnoreTags="TRUE" MoreText="..."><Column Name="Body"/></Limit></Case><Default><Limit Len="250" AutoHyperLinkNoEncoding="TRUE" MoreText="..."><Column Name="Body"/></Limit></Default></Switch></ScriptQuote><HTML><![CDATA[;</script>]]
     
    To Create more space between the Title and Body find the following code:
     
    ></HTML><Field Name="Attachments"/><HTML><![CDATA[</span><br>]]
     
    Change the br in the CDATA to p
  • 09-19-2007 1:19 PM In reply to

    • fdb1
    • Top 50 Contributor
    • Joined on 06-20-2007
    • Mars

    Re: How to customize default Announcements summary view to hide BY line?

    What tool are you using to modify the CDATA?

    Thanks.

     

  • 09-19-2007 1:25 PM In reply to

    • Cory
    • Top 25 Contributor
    • Joined on 07-30-2007
    • PA

    Re: How to customize default Announcements summary view to hide BY line?

    SharePoint Designer

  • 12-12-2007 5:40 AM In reply to

    Re: How to customize default Announcements summary view to hide BY line?

    Is SharePoint Designer the only tool availbale to customize the number of lines viewable by default? is there no other simple way to do this?

Page 1 of 1 (5 items)

Need SharePoint Training? Attend a SharePoint Bootcamp!
Forum content (c) original posters. Everything else (c) 2008 SharePoint Experts, Inc.