Long text is clipped in the middle of the word

Skip to first unread message

Alexander Obuhovich

Jul 25, 2011, 6:59:34 AM7/25/11
to In-Portal Bugs
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:

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

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. "this is example of broken spl ...".

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


Phil -- wbtc.fr --

Jul 25, 2011, 7:02:19 AM7/25/11
to in-port...@googlegroups.com
really nice patch, it's a wide used function :)

2011/7/25 Alexander Obuhovich <aik....@gmail.com>
You received this message because you are subscribed to the Google Groups "In-Portal Bugs Team" group.
To post to this group, send email to in-port...@googlegroups.com.
To unsubscribe from this group, send email to in-portal-bug...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/in-portal-bugs?hl=en.

Alexander Obuhovich

Aug 8, 2011, 11:06:48 AM8/8/11
to in-port...@googlegroups.com
Reply all
Reply to author
0 new messages