This site uses cookies and similar technologies.

If you don't change browser settings, you agree to it.

I understand
97 Posts
Anjo
3 years ago
Topic

Hi Seblod,

Would it be possible to add to core PHP String plugin string_truncate feature? It is useful because it lets you shorten text by word rather than by character.

I've implemented this feature by adding || v == 'string_truncate' and copying and renaming substr_count in edit.php

Then in php_string.php file I added:

case 'string_truncate':

$value=JHTML::_('string.truncate', $value, $arg1 );

break;

Thanks

Anjo

Get a Book for SEBLOD
4229 Posts
Kadministrator
3 years ago
0
Level 1

Please add this request to github tracker

https://github.com/Octopoos/SEBLOD

317 Posts
Kenneth
9 months ago
2
Level 1

Any update on this?

9 months ago
1
Level 2

Hi,

Here is an update.

Regards,
Saba

317 Posts
Kenneth
8 months ago
0
Level 3

I installed new version and tested. Got error:

"0 - Call to undefined method JCckDevHelper::truncate()"

Get a Book for SEBLOD