posts - 15, comments - 14, trackbacks - 0

My Links

News

These postings are provided "AS IS" with no warranties, and confers no rights.
Locations of visitors to this page

Tag Cloud

Archives

Post Categories

Truncate the characters displayed in a blog post

This is how to reduce the number of characters displayed in a blog post on the default.aspx page of a blog site created from the OOTB SharePoint blog template.

  • Open up the site in SharePoint Designer
  • Open the default.aspx and switch to Code View
  • Perform a Find & Replace for the following:
    • Find-
      • <Field Name="Body"/>
    • Replace-
      • <Limit Len="99" IgnoreTags="TRUE" MoreText="..."><Column Name="Body"/></Limit>
 
image 
 

This would limit the number of characters to 99 and display the text contained in the MoreText attribute as the last characters. Check out this for more info on the Limit element.

Do remember to back up the page before attempting this just in case.... ;)

Print | posted on Tuesday, July 08, 2008 9:35 AM | Filed Under [ MOSS WSS Blog SharePoint Designer ]

Feedback

Gravatar

# re: Truncate the characters displayed in a blog post

This is great !!! Thanks a million I have been looking for this functionality for the past 2 weeks.
But I am still stuck on how do I make the " more..." link to individual posts.

I would appreciate it if you have this too.
Thanks.
Emil.
9/3/2008 7:13 PM | Emil
Gravatar

# re: Truncate the characters displayed in a blog post

HI, Great job

I have been searching for the this tools since 1 week

its really helpfull
2/27/2009 10:38 AM | Study India
Gravatar

# Engineering colleges

www.studyguideindia.com has information on more than 22,000 colleges and 4000+ courses offered across India. Offers extensive information on competitive exams like GATE, GMAT, GRE, JMET, MAT, NET, SAT, TANCET, TOEFL. Scholarship and education loan details. It provides career guidance for 170+ education fields with mentor support. Communication skills development techniques. Provides information on Education and career news, guides for international education, campus interview materials by experts.
6/19/2009 3:46 AM | Ohmpraksh

Post Comment

Title  
Name  
Email
Url
Comment   

Powered by: