This is what is in our templates

<meta http-equiv="Content-Type" content="text/html; charset="UTF-8" />
<meta name="eGMS.accessibility" scheme="eGMS.WCAG10" content="Double-
A" />
<meta name="DC.format" scheme="DCTERMS.IMT" content="Text/HTML" />
<meta name="DC.identifier" scheme="DCTERMS.URI" content="<%PageFilename
%>" />
<meta name="DC.language" scheme="DCTERMS.ISO639-2" content="eng" />
<meta name="DC.coverage" content="UK" />
<meta name="eGMS.copyright" content="Crown copyright
http://www.opsi.gov.uk/advice/crown-copyright/index.htm"; />
<reddot:cms>
  <if>
    <query valuea="Context:CurrentRenderMode" operator="!="
valueb="Int:2">
      <htmltext>
            <link href="<%SmarteditCSSFolder%>main.css"
rel="stylesheet" media="screen" type="text/css" />
            <link href="<%SmarteditCSSFolder%>smartEdit.css"
rel="stylesheet" media="screen" type="text/css" />
            <script type="text/javascript" src="<
%SmarteditJavascriptFolder%>jquery-1.2.6.min.js"></script>
            <script type="text/javascript" src="<
%SmarteditJavascriptFolder%>jquery.cookie.pack.js"></script>
            <script type="text/javascript" src="<
%SmarteditJavascriptFolder%>commonSE.js"></script>
            <script type="text/javascript" src="<
%SmarteditJavascriptFolder%>smartEdit.js"></script>
            <script type="text/javascript" src="<
%SmarteditJavascriptFolder%>tabs.js"></script>
            <!--[if lte IE 6]>
                <link href="<%SmarteditCSSFolder%>ie6.css"
rel="stylesheet" media="screen" type="text/css" />
            <![endif]-->
            <!--[if IE 7]>
                <link href="<%SmarteditCSSFolder%>ie7.css"
rel="stylesheet" media="screen" type="text/css" />
            <![endif]-->
      </htmltext>
    </query>
    <query type="else">
      <htmltext>
            <script type="text/javascript" src="<%LiveJavascriptFolder
%>hideEls.js"></script>
            <link href="<%LiveCSSFolder%>main.css" rel="stylesheet"
media="screen" type="text/css" />
            <link href="<%LiveCSSFolder%>print.css" rel="stylesheet"
media="print" type="text/css" />
            <script type="text/javascript" src="<%LiveJavascriptFolder
%>jquery-1.2.6.min.js"></script>
            <script type="text/javascript" src="<%LiveJavascriptFolder
%>jquery.cookie.pack.js"></script>
            <script type="text/javascript" src="<%LiveJavascriptFolder
%>jquery.autocomplete.js"></script>
            <script type="text/javascript" src="<%LiveJavascriptFolder
%>common.js"></script>
            <script type="text/javascript" src="<%LiveJavascriptFolder
%>tabs.js"></script>
            <!--[if lte IE 6]>
                <link href="<%LiveCSSFolder%>ie6.css" rel="stylesheet"
media="screen" type="text/css" />
            <![endif]-->
            <!--[if IE 7]>
                <link href="<%LiveCSSFolder%>ie7.css" rel="stylesheet"
media="screen" type="text/css" />
            <![endif]-->
      </htmltext>
    </query>
  </if>
</reddot:cms>
</head>
<!IoRangeRedDotMode>
     <script type="text/javascript" src="rdUIDragSort/lib/
jquery-1.2.6.pack.js"></script>
     <script type="text/javascript" src="rdUIDragSort/lib/
ui.jquery-1.5rc1-dragsort.packed.js"></script>
     <script type="text/javascript" src="rdUIDragSort/
rdUIDragSort.js"></script>
<!/IoRangeRedDotMode>

On Jan 14, 5:02 pm, TonyGayter <[email protected]> wrote:
> We dont put any of those files in reddot as it is very bad for
> designers as they generally work straight with CSS and generally dont
> have any reddot knowledge. We create a virtual folder in the default
> website which holds the css and images etc, then just referance this
> in the template. It all works no problems
>
> On Jan 14, 3:45 pm, jkinzel <[email protected]> wrote:
>
>
>
> > Hi all,
>
> > So I'm always reading about "best practices" when working within
> > RedDot. I came across a few documents from a company called "Oshyn"
> > based in L.A. and their document stated that putting JavaScript and
> > CSS files as content classes in the CMS would degrade performance
> > because they would be passed through the rendering engine each time a
> > page is loaded in SmartEdit and/or preview mode.
>
> > As such I'm not attempting to attach the JavaScript and CSS files as
> > files from asset manager. The CSS seems to be working with the
> > exception of images, but the JavaScript does not seem to work at all
> > when attached in this manner. So I have a few questions:
>
> > 1) Do you follow this practice?
>
> > 2) If you do, how do you handle CSS images?
>
> > 3) If you do, does your JavaScript work? If so, can you post the code?
>
> > Thanks for the help...
-- 
You received this message because you are subscribed to the Google Groups 
"RedDot CMS Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/reddot-cms-users?hl=en.


Reply via email to