Page 1 of 1

error on downloaded template

Posted: Sat Mar 03, 2007 6:08 am
by Josette
Hello

I have downloaded the Pearl template from themes.cmsmadesimple.org

I have the following error at the top of the page:
string(83) "Smarty error: unable to read resource: "globalcontent:JavaScript for IE page width""

This line is in the head section of the template.

Can anyone advise to what it is referring and how i can get rid of it.

Many thanks

Josette

Re: error on downloaded template

Posted: Sun Mar 04, 2007 2:10 pm
by Dee
Create a global content block (Content » Global Content Blocks » Add Global Content Block) with the name "JavaScript for IE page width" and this content (it's in the CMS Made Simple default content, maybe you deleted it?):

Code: Select all

{literal} <__script__ type="text/JavaScript">
<!--
//pass min and max -measured against window width
function P7_MinMaxW(a,b){
	var nw="auto",w=document.documentElement.clientWidth;
	if(w>=b){nw=b+"px";}if(w<=a){nw=a+"px";}return nw;
}
//-->
</__script> <!--[if lte IE 6]>
<style type="text/css">
#pagewrapper {width:expression(P7_MinMaxW(720,950));}
#container {height: 1%;}
</style>
<![endif]--> {/literal}
Regards,
D