Pass attributes to texttoimage tamplate

Author Message

Daniele Nocentini

Friday 11 July 2008 1:05:23 am

When I use a texttoimage template operator it load a image/layer.tpl template, I need to set a ID or Name on img tag, How can I pass to this template an attribute? or if possible that texttoimage template operator return only image path?

thanks

Antica Bottega Digitale srl
http://www.abd.it

Daniele Nocentini

Friday 11 July 2008 6:46:46 am

I found the solution to make img tag without /image/layer.tpl, this is the code


<img border="0" src="/{$profilo.name|wash()|upcase()|texttoimage( $font ).imagepath}" />

the slash before the code per src attribute it's required because the "imagepath" don't return the correct path with first slash, maybe it's a bug.

Antica Bottega Digitale srl
http://www.abd.it

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.