Author Topic

Olav Lillebø

Tuesday 11 May 2004 5:57:14 am

Comment40630

Not sure if this helps, but maybe try putting the script in a .tpl-file, and from pagelayout use something like

{include uri="design:script.tpl"}

and then, in the script, turn on and off literal to switch between tpl-language and js-language.

{literal}
<script language="JavaScript1.2"><!--
.....
{/literal}
{* Here put template language *}
{literal}
......
{/literal}

Olav..