RSS

Limit length of dataview webpart title text character

01 Apr

Limit Announcment list title length

To alter the character limit of an Announcements List, there is an attribute that must be set through SharePoint Designer on the page that contains the web part. Perform a search for the string “Limit Len=” on the page in question and alter the value to reflect the character limit you would like.The default character limit attribute is set to 250 characters.

Limit Dataview webpart of any list title text

<xsl:value-of select=”concat(substring(@Title,1,100),’…[+]’)” disable-output-escaping=”yes” />

eg: 

<td>
    <a href=”http://mylink/Pages/Test.aspx?id={@ID}”><xsl:value-of select=”concat(substring(@Title,1,100),’…[+]’)” disable-output-escaping=”yes” /></a><xsl:if test=”ddwrt:IfNew(string(@Modified))”><IMG SRC=”/_layouts/1033/images/new.gif” alt=”New” /></xsl:if>

   </td>

Advertisements
 
2 Comments

Posted by on April 1, 2009 in Sharepoint Designer, Webpart

 

Tags: ,

2 responses to “Limit length of dataview webpart title text character

  1. Jerry P

    July 23, 2009 at 10:38 PM

    Hi, this is helpful for subsites, but im trouble changing this attribute for the Publishing site, can you help with this?

    Thx

     
  2. Manu

    August 6, 2013 at 4:06 PM

    Thanks, this helps.

     

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: