Forums / Setup & design / Pass attributes to texttoimage tamplate

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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