Forums / Developer / Is any way to use javascript in pagelayout.tpl

Is any way to use javascript in pagelayout.tpl

Author Message

Vytautas Germanavičius

Wednesday 20 October 2004 5:57:14 am

I need to put javascript to pagelayout.tpl
But EZ 3.4.1 shows error on every function I specified. It treats { sign as begin of EZ function, not javascript.
I removed all functions which is context independen to javascript files. But what to do with javascript which depends, for example, from section?

Should i use tag <literal>? what else?

{set-block scope=root variable=cache_ttl}0{/set-block}

Felix Laate

Wednesday 20 October 2004 6:14:07 am

Hi there!

Use {literal} to wrap in the javascript code, or simply put it in its own .js file and include it in the pagelayout.

felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com