Plugin: Trim Title
Posted: 08 February 2010 03:16 PM   [ Ignore ]  
Grad Student
Avatar
Rank
Total Posts:  51
Joined  11-16-2007

Similar to the Char Limit plugin, this plugin lets you specify how many characters you’d like to limit for a string and append something at the end, usually a hellip (three dots).

It won’t break a word up, and if it finds a punctuation symbol at the end of the string after being limited, it will remove that.

Tags (HTML, PHP) are stripped from the output, so this plugin’s primary usage is for titles, though can be used for other things.

Usage is listed in the plugin usage, but it’s simply:

{exp:trim_title chars="10" append="..."}
    Text Goes Here
{
/exp:trim_title} 

Where chars is the number of characters to limit, and append is what should show up at the end of the string.

An example would be the recent or popular articles in the sidebar here.

You can download the latest version here:

http://ee.cwhapps.com/plugins/trimtitle/latest.zip

File Attachments
trim_title-1.0.zip  (File Size: 2KB - Downloads: 119)
 Signature 

Crucial Web Hosting
Ready To Split-Shared Hosting?

Profile
 
 
Posted: 08 June 2010 12:49 AM   [ Ignore ]   [ # 1 ]  
Summer Student
Total Posts:  13
Joined  12-01-2008

How do I add it to my template? I already downloaded the link. Should i copy and paste it in a new template and link it to the main index or what?

Profile
 
 
Posted: 29 June 2010 10:45 PM   [ Ignore ]   [ # 2 ]  
Research Assistant
RankRankRank
Total Posts:  445
Joined  02-22-2006

Hi! Devotee site says this plugin is EE2.0 compatible… Is it?

Thanks!
M

 Signature 

EE2 Plugins: Eencode, Includee, Keywordz, x2html, SizePlus, APStylee

Profile