Tuesday 29 March 2005 7:12:26 am
Hi Bård,
That's what I did previously.
I override template.ini in the override directory. template.ini.append.php :
<?php /* #?ini charset="iso-8859-1"?
PHPOperatorList[]
PHPOperatorList[striptags]=strip_tags
*/ ?>
and add in mysite/override/templates/listitem/article.tpl
<div class="attribute-short"> {$node.object.data_map.intro.content.output.output_text|striptags|shorten( 50 )}
</div>
It works fine but without formatting text or image in the shorten string. Laurent.
|