Uploaded image for project: 'In-Portal CMS'
  1. In-Portal CMS
  2. INP-889

Long text is clipped in the middle of the word

    XMLWordPrintable

    Details

    • Type: Bug Report
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.1.3-RC1
    • Fix Version/s: 5.1.3
    • Component/s: Front End
    • Labels:
      None

      Description

      I have no any URL to give an example, but In-Portal has text clipping function, that allows any db field value to be clipped to a given length. For example not to break page layout by inserting very long text.

      Here is how to use it:

      [b]<inp2:prefix_Field name="FieldName" cut_first="145"/>[/b]

      This will return first 145 symbols of given field value. In case, when there is a middle of a word at 145th symbol, then word would be broken, e.g. "[b]this is example of broken spl ...[/b]".

      I'm attaching a patch, that would do same, but also will keep word integrity, like this: "[b]this is example of broken ...[/b]".

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex Alex
                Reporter:
                alex Alex
                Developer:
                Alex
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: