<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.2614.3500" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial>Hi,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial>Iīm working with OpenCms version 5.0. I tried to insert a
Javascript block in a frametemplate following the instructions in OpenCms v.4.6
userīs guide.It shows the follow template structure for a
frametemplate:</FONT></DIV>
<DIV><FONT color=#0000ff face=CMTT12 size=2>
<P align=left><?xml version="1.0"?></P></FONT><FONT face=CMTT12>
<P align=left><FONT color=#0000ff size=2><XMLTEMPLATE></FONT></P>
<P align=left><FONT color=#0000ff size=2><TEMPLATE></FONT></P>
<P align=left><FONT color=#0000ff size=2><![CDATA[</FONT></P>
<P align=left><FONT color=#0000ff size=2><HTML></FONT></P>
<P align=left><FONT color=#0000ff size=2><HEAD></FONT></P>
<P align=left><FONT color=#0000ff size=2><TITLE>]]><method
name="getTitle"/><![CDATA[</TITLE></FONT></P>
<P align=left><FONT color=#0000ff size=2>]]><element
name="javascript"/><![CDATA[</FONT></P>
<P align=left><FONT color=#0000ff size=2></HEAD></FONT></P>
<P align=left><FONT color=#0000ff size=2><BODY></FONT></P>
<P align=left><FONT color=#0000ff size=2>]]><element
name="body"/><![CDATA[</FONT></P>
<P align=left><FONT color=#0000ff size=2></BODY></FONT></P>
<P align=left><FONT color=#0000ff size=2></HTML></FONT></P>
<P align=left><FONT color=#0000ff size=2>]]></FONT></P>
<P align=left><FONT color=#0000ff size=2></TEMPLATE></FONT></P>
<P align=left><FONT color=#0000ff size=2><ELEMENTDEF
name="javascript"></FONT></P>
<P align=left><FONT color=#0000ff
size=2><TEMPLATESELECTOR>script</TEMPLATESELECTOR></FONT></P>
<P align=left><FONT color=#0000ff size=2></ELEMENTDEF></FONT></P>
<P align=left><FONT color=#0000ff size=2></XMLTEMPLATE></FONT></P>
<P align=left><FONT face=Arial>If itīs a frametemplateīs xml file, why the body
element is inserted within the template but not the contenttemplate
element?</FONT></P>
<P align=left><FONT face=Arial>And then, the userīs guide shows the way to
define the Javascritp code in another file named
<EM>script.</EM></FONT></P><FONT face=CMTT12>
<P align=left><FONT color=#0000ff size=2><?xml version="1.0"?></FONT></P>
<P align=left><FONT color=#0000ff size=2><XMLTEMPLATE></FONT></P>
<P align=left><FONT color=#0000ff size=2><TEMPLATE></FONT></P>
<P align=left><FONT color=#0000ff size=2><!- body template -></FONT></P>
<P align=left><FONT color=#0000ff size=2></TEMPLATE></FONT></P>
<P align=left><FONT color=#0000ff size=2><TEMPLATE
name="script"></FONT></P>
<P align=left><FONT color=#0000ff size=2><!- Javascript code ...
-></FONT></P>
<P align=left><FONT color=#0000ff size=2></TEMPLATE></FONT></P>
<P align=left><FONT color=#0000ff size=2></XMLTEMPLATE></FONT></P>
<P align=left><FONT face=Arial>In which folder do I have to put this
file?</FONT></P>
<P align=left> </P>
<P align=left><FONT face=Arial>Thanks,</FONT></P>
<P align=left><FONT face=Arial>Angel
Ruiz</FONT></P></FONT></FONT></DIV></BODY></HTML>