We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Plugin: Trim Title

Development and Programming

divspace's avatar
divspace
29 posts
15 years ago
divspace's avatar divspace

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

       
kikib's avatar
kikib
6 posts
15 years ago
kikib's avatar kikib

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?

       
mhulse's avatar
mhulse
329 posts
15 years ago
mhulse's avatar mhulse

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

Thanks! M

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.