Share » Forums » Extensions » howto return a template with ezjscore?

howto return a template with ezjscore?

howto return a template with ezjscore?

Monday 06 December 2010 12:33:12 pm - 1 reply

Author Message

Gaetano Giunta

Monday 06 December 2010 1:40:20 pm

Yes, you can do it:

- either the ezjscore function is executed just via a template. For this you need to set the parameter

TemplateFunction=true

in the settings block defining your call

- or the ezjscore function is executed just via a function in a php script. Then the script runs the template and passes back the result of template execution as chunk of text:

$tpl = templateInit();
$tpl->setVariable( 'name', $value );
return $tpl->fetch( 'design:myezjscore_function/name.tpl' );

Principal Consultant International Business
Member of the Community Project Board

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu