Forums / Developer / Limit character output of a field

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Limit character output of a field

Author Message

Tony Stark

Friday 29 February 2008 1:16:38 am

Hi,

Is there any way on output you can restrict the character display on screen? i.e. if an attribute has say 100 characters in it, can you only show the first 50 chars?

Hope this makes sense!

Tony

Stéphane Bullier

Friday 29 February 2008 1:28:31 am

Hi,

Operator shorten :
http://ez.no/doc/ez_publish/technical_manual/4_0/reference/template_operators/strings/shorten

Stéphane