<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16608" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV dir=ltr align=left><FONT size=2><FONT face=Verdana>Pere<SPAN
class=093054111-15022008>,</SPAN></FONT></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Verdana size=2><SPAN
class=093054111-15022008></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Verdana size=2><SPAN
class=093054111-15022008>in fact this is working as desigend. It works with
"on demand" static export as well as "full export". I believe that in the
Alkacon Documentation module for the static export there are some examples that
also show this behaviour.</SPAN></FONT></DIV><!-- Converted from text/plain format --><BR>
<P><FONT size=2><FONT face=Verdana>Kind
Regards,<BR>Alex.<BR><BR>-------------------<BR>Alexander
Kandzior<BR><BR>Alkacon Software GmbH - The OpenCms
Experts <BR></FONT><A
href="http://www.alkacon.com/"><FONT
face=Verdana>http://www.alkacon.com</FONT></A><FONT face=Verdana> - </FONT><A
href="http://www.opencms.org/"><FONT
face=Verdana>http://www.opencms.org</FONT></A><FONT
face=Verdana> <BR> <BR>Visit
us on CeBIT expo in Hannover,
Germany <BR>March
4 to March 9, 2008 - Hall 5 Stand
F59/3
</FONT></FONT></P>
<DIV> </DIV><BR>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=de dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> opencms-dev-bounces@opencms.org
[mailto:opencms-dev-bounces@opencms.org] <B>On Behalf Of </B>Pere
Torrodellas<BR><B>Sent:</B> Thursday, February 14, 2008 5:15 PM<BR><B>To:</B>
OpenCms Mail List<BR><B>Subject:</B> [opencms-dev] Nice static export
behaviour discovered by accident<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><FONT face=Arial size=2>Hello,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I've just discovered a nice static
export behaviour I was unaware of, and of which I've been unable to find
any reference in the OpenCms info sources. Maybe someone can direct me to
where it's explained?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>By mistake I defined a page,
"detall_fitxa.html", with export=true. But in fact it's not static,
because its template includes a JSP that produces different output depending
on an iput parameter. The different page variations are requested from a
menu page built by a search function, with entries of the
form:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><li><a
href="<cms:link>/.../detall_fitxa.html?idFitxaOcup=<%= idFitxa
%></cms:link>" ...</a></li></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>idFitxaOcup being the parameter that defines the
specific output.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I expected this to return always the same output,
the one corresponding to the first invocation that triggers the export of
detall_fitxa.html.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>But it was working, and nicely serving the right
different pages from the export directory !!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>To my amazement, in the menu page navigator
source, instead of having entries like:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2><li><a
href="/.../export/.../detall_fitxa.html?idFitxaOcup=1"
...</a></li></FONT> </DIV>
<DIV>
<DIV><FONT face=Arial size=2><li><a
href="/.../export/.../detall_fitxa.html?idFitxaOcup=2"
...</a></li></FONT>
<DIV><FONT face=Arial size=2><li><a
href="/.../export/.../detall_fitxa.html?idFitxaOcup=3"
...</a></li></FONT> </DIV></DIV></DIV></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>OpenCms is producing entries of the
form:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><li><a
href="/.../export/.../detall_fitxa.html_1906779681.html"...</a></li></FONT></DIV>
<DIV><FONT face=Arial size=2><li><a
href="/.../export/.../detall_fitxa.html_1906779812.html"...</a></li></FONT></DIV>
<DIV><FONT face=Arial size=2><li><a
href="/.../export/.../detall_fitxa.html_1906779813.html"...</a></li></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>and those pages with the strange names get indeed
into the right export directory and are served from there. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>So by declaring one page exportable, I got N
exported pages, one for every input parameter that was being selected in
the menu page. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>This is not at all what I understood from the
static export OpenCms info... but it's really nice if you don't have a lot of
different variations. It's kind of like Flex with the "params" directive, but
completely static... </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Is this a documented feature? Did I miss it in
the OpenCms documentation? How can OpenCms decide the different page names in
the menu before knowing the whole set of possible parameter
values??? Interesting stuff, but I feel uneasy depending on it until
someone tells me that this is "working as designed".</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks for any info,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Pere</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BLOCKQUOTE></BODY></HTML>