-
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
-
External issue URL:
-
Change Log Message:Fixed text shortening algorithm when first_chars/cut_first parameter is used in Field tag
-
External issue ID:1089
-
Copy Issue Key:
-
Patch Instructions:
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]".
- mentioned in
-
Wiki Page Loading...