[opencms-dev] content of called html-page can not be included in template

Niina Meronen niina.meronen at cidercone.com
Tue Aug 17 13:07:27 CEST 2004


Hi everybody,

 

I found a question below from the mail archive when struggling with similar
problem but there were no answers. So, is there anybody who knows the reason
or can explain how to avoid that problem? In my case we are using OpenCMS
5.0.1., and the problem is that the content of file that is called (usually
index.html) is replaced by previous file's content (smaller position in
navigation). In other words, previous file's content is shown twice when
trying to include several html-pages in one template. The only exception is
when the file that is called is the first one in navigation, then the
content of all the files is shown correctly! 

 

I would really apreciate the answer, thanks in advance!

 

Niina Meronen

---

 

Frank Wunderlich k.frank.wunderlich
<mailto:opencms-dev%40opencms.org?Subject=%5Bopencms-dev%5D%20%22include%20b
ody%22%20misbehaves%20after%20including%20other%20file&In-Reply-To=>  at
gmx.de 
Mon Jun 2 18:55:01 CEST 2003 

*	Previous message: [opencms-dev]
<http://mail.opencms.org/pipermail/opencms-dev/2003q2/004910.html>
projectId of tempfileproject 
*	Next message: [opencms-dev]
<http://mail.opencms.org/pipermail/opencms-dev/2003q2/004902.html>  Deleting
old folders during sync 
*	Messages sorted by: [
<http://mail.opencms.org/pipermail/opencms-dev/2003q2/date.html#4899>  date
] [ <http://mail.opencms.org/pipermail/opencms-dev/2003q2/thread.html#4899>
thread ] [
<http://mail.opencms.org/pipermail/opencms-dev/2003q2/subject.html#4899>
subject ] [
<http://mail.opencms.org/pipermail/opencms-dev/2003q2/author.html#4899>
author ] 

  _____  

Hi,
 
I've got the following problem:
 
I have got a master-jsp-template, that shall dynamically include other
html-pages (resp. page-fragments), that have their own jsp-template.
That means, both, the including and the included page are editable via
opencms.
 
Unfortunatly the bodycontent of the main-page is not accessible anymore,
after I have included the other page.
Instead of showing the bodycontent of the main-page, the bodycontent of
the included page is shown again.
 
Example:
 
<cms:include element="body" />              // The correct bodycontent
of my page is displayed
<% cms.include(otherEditableHtmlFile); %>   // The content of the
included page is displayed 
<cms:include element="body" />              // The content of the
included page is shown again!! 
 
Looks like some unwanted sideeffect to me...
Or am I doing something the wrong way?
 
Thanks in advance,
Frank.

 

 

-- 
Niina Meronen
Service Manager
Cidercone Wireless
Paciuksenkatu 21
FI-00270 Helsinki
phone +358 9 477 41 610
fax +358 9 477 41 666
niina.meronen at cidercone.com
 
<file:///C:\Documents%20and%20Settings\niina\Application%20Data\Microsoft\Si
gnatures\www.cidercone.com> www.cidercone.com

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20040817/dea7a3a2/attachment.htm>


More information about the opencms-dev mailing list