[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: |
|
||||||||||||
| 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. |