Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-6052

Add method to templating functions to abbreviate strings

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 5.4
    • None
    • templating
    • None

      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.

        Acceptance criteria

              pmundt Philip Mundt
              pmundt Philip Mundt
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Task DoR