[opencms-dev] problem with publishing frames
Moises at eskatoo.de
Moises at eskatoo.de
Fri Aug 30 12:05:18 CEST 2002
Hi,
We are using OpenCMS for the first time and we've got some problems with
the static export of a frame-based website...
I was expecting that the dynamic frames from the "work/edit" system are
generated static on export,
but the framesets in the "export" folder still look like this:
frame src="/opencms/export/WebSites/somfy/de/index.html?cmsframe=temp_head"
which, of course, doesn't do anything in static HTML pages... the
"index.html" pages simply are empty then...
It also doesn't make any difference if I use the dynamic linking version:
src="]]><METHOD name="getUri"/><METHOD name
="getFrameQueryString">temp_head</METHOD>
or the hard-coded one:
<![CDATA[?cmsframe=temp_head]]>
So I guess I don't understand the overall frame export concept... :(
how are these dynamic framesets supposed to export correctly?
Do I have to change some properties in the static export section of
opencms.properties?
Shouldn't the "virtual" frames get replaced with static pages? If so, how
do I configure this?
"Normal" pages (without frames) are published correctly...
Here is the frametemplate file we are using, maybe there is something wrong
with it?
***************************************************************************************************************************************
<?xml version="1.0"?>
<XMLTEMPLATE>
<TEMPLATE>
<![CDATA[
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN"><HTML><HEAD>
<TITLE>]]>
<METHOD name="getTitle" /> <![CDATA[</TITLE>
</HEAD>
<FRAMESET ROWS="*,32" framespacing="0" frameborder="0" border="0"
noborder>
<FRAME NAME="frame_head" frameborder="0" scrolling="Auto"
noresize marginwidth="0" marginheight="0" src="]]>
<METHOD name="getUri"/><METHOD name
="getFrameQueryString">temp_head</METHOD>
<!-- <![CDATA[?cmsframe=temp_head]]> -->
<![CDATA[">
<FRAME NAME="frame_body" frameborder="0" scrolling="Auto"
noresize marginwidth="0" marginheight="0" src="]]>
<METHOD name="getUri"/><METHOD name
="getFrameQueryString">temp_bottom</METHOD>
<!-- <![CDATA[?cmsframe=temp_bottom]]> -->
<![CDATA[">
</FRAMESET>
</HTML>]]>
</TEMPLATE>
<stylesheet>WebSites/somfy/de/css/home.css</stylesheet>
<TEMPLATE name="temp_head">
<![CDATA[<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN"><HTML><HEAD>
<TITLE>Contentframe</TITLE>
<link rel="STYLESHEET" type="text/css" href="]]>
<method name="getServletPath" />
<![CDATA[WebSites/somfy/de/css/home.css">
<script language="JavaScript" TYPE="text/javascript">
<!--
function highlight() {}
function lowlight() {}
//-->
</script>
<link rel="STYLESHEET" type="text/css" href="]]><method name
="getServletPath" /><![CDATA[WebSites/somfy/de/css/menu_styles.css">
<script language="JavaScript1.2" src="]]><method name="getServletPath" />
<![CDATA[WebSites/somfy/de/css/highlight.js" type="text/javascript">
</script>
<script language="JavaScript1.2" src="]]><method name="getServletPath" />
<![CDATA[WebSites/somfy/de/css/coolmenus4.js">
</script>
</HEAD>
<body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#0212A2" alink
="#FF0000" background="]]><method name="getServletPath" />
<![CDATA[pics/somfy/bg3.gif">
<script>
<!--
//Menu object creation
oCMenu=new makeCM("oCMenu")
...
// javascript stuff
...
oCMenu.construct()
//-->
</script>
]]>
<ELEMENT name="contenttemplate"/>
<![CDATA[
</BODY></HTML>
]]>
</TEMPLATE>
<TEMPLATE name="temp_bottom">
<ELEMENT name="nav_bottom"/>
</TEMPLATE>
<ELEMENTDEF name="nav_bottom">
<CLASS>com.opencms.defaults.CmsXmlNav</CLASS>
<TEMPLATE>/content/elements/nav_bottom</TEMPLATE>
</ELEMENTDEF>
</XMLTEMPLATE>
***************************************************************************************************************************************
and here is the master template for it:
***************************************************************************************************************************************
<?xml version="1.0"?>
<XMLTEMPLATE>
<ELEMENTDEF name="contenttemplate">
<CLASS>com.opencms.template.CmsXmlTemplate</CLASS>
<TEMPLATE>/content/contenttemplates/subcontenttemplate</TEMPLATE>
</ELEMENTDEF>
<ELEMENTDEF name="frametemplate">
<CLASS>com.opencms.template.CmsXmlTemplate</CLASS>
<TEMPLATE>/content/frametemplates/frametemplate1</TEMPLATE>
</ELEMENTDEF>
<TEMPLATE>
<ELEMENT name="frametemplate"/>
</TEMPLATE>
</XMLTEMPLATE>
***************************************************************************************************************************************
Thanks for any help!
Best regards,
Stefan Moises
---
eskatoo - Die Agentur für innovative Kommunikation II GmbH
Stefan Moises
Software Engineer / IT-Consultant
Frankenstrasse 152 - 90459 Nuernberg - Germany
phone +49-(0)911 / 8 18 75-73 - fax +49-(0)911 / 8 18 75-99
e-mail moises at eskatoo.de - web http://www.eskatoo.de
More information about the opencms-dev
mailing list