AW: [opencms-dev] problem with publishing frames

Moises at eskatoo.de Moises at eskatoo.de
Fri Aug 30 14:08:24 CEST 2002


Hi Hanjo,

thanks a lot, that solves the problem!! :)

There is one little problem left, though...

we got some javascript in our template which builds a dynamic menu... such
an entry looks like that:

oCMenu.makeMenu('top0','','<img src="]]><method name="getServletPath" />
<![CDATA[pics/somfy/bullet-somfy-g.gif" border="0" align="left" alt=""
vspace="1"> Solutions',']]><method name="getServletPath" />
<![CDATA[WebSites/somfy/de/solutions/index.html', '_top', '83')

which then generates

oCMenu.makeMenu('top0','','<img src
="/opencms/opencms/pics/somfy/bullet-somfy-g.gif" border="0" align="left"
alt="" vspace="1">
Solutions','/opencms/opencms/WebSites/somfy/de/solutions/needs_projects/index.html',

'_top', '83')

on execution - which is correct for the "edit" system....

But, as this obviously isn't recognizable as a "link" (no <a href="... or
"javascript:" etc.) , it seems that the openCMS parser doesn't replace it
while statifying the site...
so it stays the same for the exported pages...
but, of course it should be
'/opencms/export/WebSites/somfy/de/solutions/needs_projects/index.html'
instead of
'/opencms/opencms/WebSites/somfy/de/solutions/needs_projects/index.html'

Is there any way to tell openCMS to recognize/replace these links?

Thanks for your help!

Best regards,
Stefan
---
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


|---------+--------------------------------->
|         |           Hanjo Riege           |
|         |           <Hanjo.Riege at framfab.d|
|         |           e>                    |
|         |           Sent by:              |
|         |           owner-opencms-dev at www.|
|         |           opencms.org           |
|         |                                 |
|         |                                 |
|         |           30.08.2002 12:15      |
|         |           Please respond to     |
|         |           opencms-dev           |
|         |                                 |
|---------+--------------------------------->
  >--------------------------------------------------------------------------------------------------------------|
  |                                                                                                              |
  |       To:       "'opencms-dev at www.opencms.org'" <opencms-dev at www.opencms.org>                                |
  |       cc:                                                                                                    |
  |       Subject:  AW: [opencms-dev] problem with publishing frames                                             |
  >--------------------------------------------------------------------------------------------------------------|




Hi Stefan,
sorry, the OpenCms Documentation is not updated for static export of
framesets.
The method getFrameQueryString does not work with the static export.
Instead you should use the new method getUriWithParameter.
Here is an example that should work:


             <frameset  rows="115,*,30" border="0" framespacing="0"
frameborder="0">
                         <frame name="head" src="]]><method
name="getUriWithParameter">cmsframe=head</method><![CDATA[" scrolling="no"
noresize>
                         <frameset  cols="147,*" border="0" framespacing
="0"
frameborder="0">
                                     <frame name="nav" src="]]><method
name="getUriWithParameter">cmsframe=nav</method><![CDATA[" scrolling="auto"
noresize>
                                     <frameset rows="87,*" border="0"
framespacing="0"
frameborder="0">
                                                 <frame name="contenthead"
src="]]><method
name="getUriWithParameter">cmsframe=contenthead</method><![CDATA["
scrolling="no"  noresize>
                                                 <frame name="content" src
="]]><method
name="getUriWithParameter">cmsframe=content</method><![CDATA["
scrolling="auto"  noresize>
                                     </frameset>
                         </frameset>
                         <frame name="bottom" src="]]><method
name="getUriWithParameter">cmsframe=bottom</method><![CDATA[" scrolling
="no"
noresize>
             </frameset>


Best Regards,

Hanjo


-----Ursprüngliche Nachricht-----
Von: Moises at eskatoo.de [mailto:Moises at eskatoo.de]
Gesendet: Freitag, 30. August 2002 12:05
An: opencms-dev at opencms.com
Cc: Agathe_Balthasar/Eskatoo at eskatoo.de; Marco_Wagner/Eskatoo at eskatoo.de
Betreff: [opencms-dev] problem with publishing frames


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