Author Topic

Damien Pobel

Thursday 13 September 2007 1:11:13 am

Comment48533

Hi Paul,

Write a custom template operator that strips img or whatever is probably the easier way to do that.
http://ez.no/Exponential/documentation/development/extensions/template_operator

and then in your template you can do :

{attribute_view_gui attribute=$your_attribute strip_img=true()}

and in an override of templates/content/datatype/view/ezxmltext.tpl you can do

{if and( $strip_img|is_set, $strip_img )}
{your_operator( $attribute.content.output.output_text )}
{else}
{$attribute.content.output.output_text}
{/if}

Damien
Planet eZ Publish.fr : http://www.planet-ezpublish.fr
Certification : http://auth.ez.no/certification/verify/372448
Publications about eZ Publish : http://pwet.fr/tags/keywords/weblog/ez_publish