String Truncation

Author Message

Mahesh Arvind

Thursday 08 January 2004 10:56:02 pm

Hi,

I need to limit the number of characters displayed about the article introduction to 120 characters. I had tried this with the shorten method. I have used the following code

{$:item.data_map.resource_introduction.data_text|shorten(120)}

The output is that I dont see any characters if I use shorten. I am using Ez Publish 3.2.4. Can anyone tell me how to accomplish this.

Thanks
Mahesh

Thanks & Regards
Mahesh

Mahesh Arvind

Monday 12 January 2004 2:31:35 am

Hi,

I got it working in the following code

{$:item.data_map.resource_introduction.content.output.output_text|shorten(120)}

Thanks.

Mahesh

Thanks & Regards
Mahesh

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.