[MAGNOLIA-6052] Add method to templating functions to abbreviate strings Created: 28/Jan/15  Updated: 04/May/15  Resolved: 28/Jan/15

Status: Closed
Project: Magnolia
Component/s: templating
Affects Version/s: None
Fix Version/s: 5.4

Type: Task Priority: Neutral
Reporter: Philip Mundt Assignee: Philip Mundt
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
dependency
is depended upon by MGNLCAT-147 Remove dependency to STK Closed
Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Epic Link: Extract STK functionality

 Description   

It would be helpful to have a method to abbreviate String in info.magnolia.templating.functions.TemplatingFunctions.

STK provides such a method in info.magnolia.module.templatingkit.functions.STKTemplatingFunctions which could be reworked and tested before adding it.

Unfortunately WordUtils.abbreviate() was removed from org.apache.commons.lang3.text.WordUtils (see: https://issues.apache.org/jira/browse/LANG-673) and thus cannot be used to improve above functions from STK.


Generated at Mon Feb 12 04:10:51 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.