AnsweredAssumed Answered

WCM and Javascript Not viewing correctly

Question asked by grahammills on Mar 23, 2009
Latest reply on Mar 27, 2009 by grahammills
Hi,

I am new to alfresco and though that the easiest way to test the WCM would be to import one of my web sites files into alfresco and see how it can help. I was very disappointed when it did not display my files correctly. Basically I use a style sheet which was picked up okay and three javascript files, one is a header file that just writes a header section, the second is a script definition and the third is a menu section. Alfresco does not seem to display the page correctly especially if the javascript contains document.write statements. The interesting aspect is that the menu section works in some files and not in others. My typical content document would look like:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link href="images/styles.css" rel="stylesheet" type="text/css" />

<title> Test Page </title>

</head>
<body>
   <script src="header1.js"></script>
   <script src="images/xaramenu.js"></script>
   <script menumaker src="images/efc.js"></script>
<p class="stylebn">Testing a view</p>
</body>
</html>


Is there a problem with this or am I doing something wrong, or have I set the system up incorrectly?

I'm running Alfresco 3.0 stable on a SUSE lynux vm and everything looks to be okay with the set up, no errors reported or anything appearing in the logs.

Thanks
Graham

Outcomes