Posted By

gerhardsletten on 08/26/09


Tagged

ezpublish


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

mort3n


Shorten XML fields in Ez publish


 / Published in: eZ Publish
 

  1. Add this to your extension/settings/template.ini.append.php:
  2. <?php /* #?ini charset="utf-8"?
  3. [PHP]
  4. PHPOperatorList[striptags]=strip_tags
  5. */ ?>
  6.  
  7. {$node.data_map.body.content.output.output_text|striptags|shorten(100)}

Report this snippet  

You need to login to post a comment.