Author Topic

Sébastien Morel

Tuesday 09 October 2007 9:51:25 am

Comment48656

Hi, I find the way ;)

function imageTitre($titre) {
		 include_once( 'kernel/common/template.php' );
       	 $tpl =& templateInit();  
         $tpl->setVariable( 'title',$titre);
	     $templateResult =& $tpl->fetch( 'extension/xajax_offres/design/standard/templates/t2img.tpl' );
	     return $templateResult;
	}

t2img.tpl :

<!--{$title}-->{$title|texttoimage('oseo_image_titre_content_xajax_titre')}

++
;)

--
eZ c'est plus fort que toi !
http://www.ez-france.org
http://blog.plopix.net
@Novactive (http://www.novactive.com)