You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The new version (1.5.0) of the PHP String plug-in includes a truncate function.
It doesn't use the Joomla method but still takes the number of characters as length (same as string.truncate), and cut at the previous word. https://demo.seblod.com/seblod-plugins/php-string/truncate
The next version will support number of words as length.
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
initial report: Octopoos/SEBLOD#242
The text was updated successfully, but these errors were encountered: