<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2995" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<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></BODY></HTML>