Shorten XML fields in Ez publish


/ Published in: eZ Publish
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.