Hacksaw
ExpressionEngine 2
Back to this add-on's main page
View Other Add-ons From Brett DeWoody
Not displaying correct number of characters….
Feature Request
shorn
|
Posted: 12 March 2012 06:54 PM |
|
|
|
Hi there,
I am using this to limit some entry titles in a sidebar and I am using the following:
{exp:eehive_hacksaw chars = "15" append="..."}{title}{/exp:eehive_hacksaw}
The problem is that is doesn’t always count 15 characters, and will cut off at the end of a work within the 15 characters.
For example:
If my title is: “THE NEW RECREATIONAL”
I would expect the following to be outputted: “THE NEW RECREAT…”
but instead it outputs: “THE NEW…”
Any ideas?
|
|
|
Jules6120
|
Posted: 02 October 2013 08:38 PM |
# 1
|
|
|
I am also running into this and would like the “chars” function to work like this.
Is there any way to get this to work this way?
Thanks for a great plug-in by the way. We use it all the time.
|
|
|
Matt Kinberg
|
Posted: 23 January 2014 08:59 PM |
# 2
|
|
|
The CHARS parameter is still not working properly… Any luck on this?
|
|
|
Benoit Lemay
|
Posted: 07 April 2014 11:24 PM |
# 3
|
|
|
Same problem for me!.. need to have the exact amount of character..
Thanks
|
|
|
Jesse Schutt
|
Posted: 10 October 2014 12:25 PM |
# 4
|
|
|
Same issue is happening for me. Did any of you find a fix?
|
|
|
Jesse Schutt
|
Posted: 10 October 2014 01:09 PM |
# 5
|
|
|
In case you were curious, I added a “break_word” parameter to this plugin which allows you to break right where the char limit shows up, whether in the middle of a word or not.
https://github.com/jschutt/Hacksaw-for-ExpressionEngine
|
|
|