AW: AW: [opencms-dev] problem with publishing frames

Schmidt, Kai Kai.Schmidt at bonprix.net
Fri Aug 30 14:33:51 CEST 2002


Hi Stefan,

I don´t know, if it works in your special case, but try to use the
<link>-Tag, which is described on page 168 in the documentation (static
export)

Regards,
Kai

-----Ursprüngliche Nachricht-----
Von: Moises at eskatoo.de [mailto:Moises at eskatoo.de]
Gesendet: Freitag, 30. August 2002 14:40
An: opencms-dev at www.opencms.org
Betreff: Re: AW: [opencms-dev] problem with publishing frames



Hi again,

regarding my last post, it doesn't seem like a javascript specific problem,
but rather a problem with the method

<method name="getServletPath" />

URLs generated with this method don't seem to be "corrected" for export...
and "opencms/opencms/..." stays "opencms/opencms/..." instead of
"opencms/export/..."
I just realized that because there are also some "normal" links or even
image references with the "wrong" URL
after exporting the site...

Should this method not be used then if we're doing static exports later on?

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