<html><div style='background-color:'><DIV class=RTE>
<P>thanks Pascal, but i'm unable to solve it</P>
<P>maybe showing the full code someone could point me in<BR>the right direction</P>
<P>i've a news content; there'r related news to this one</P>
<P>i want to iterate over these related new links displaying<BR>each title (that is, i want to load that new<BR>and display its contents, just like i'm displaying<BR>/system/modules/mymodule/jsptemplates/new_0 title, subtitle, etc</P>
<P><cms:contentload<BR> collector="singleFile"<BR> param="/system/modules/mymodule/jsptemplates/new_0"<BR> editable="true"></P>
<P> <c:set var="new_path"><BR> <cms:contentshow element="${opencms.filename}"/><BR> </c:set></P>
<P> <br/>[new_path=<c:out value="${new_path}"/>]<BR> <br/>[opencms.uri=<cms:contentshow element="${opencms.uri}"/>]</P>
<P><BR> <br/>Title:<cms:contentshow element="Title"/><BR> <br/>Subtitle:<cms:contentshow element="Subtitle"/><BR> <br/>Body:<cms:contentshow element="Body"/></P>
<P> <cms:contentinfo var="info0" scope="page"/><BR> <br/>info0.resultIndex=<c:out value="${info0.resultIndex}"/></P>
<P> <br/></P>
<P> <cms:contentloop element="RelatedNew"><BR> <c:set var="related_new_path"><BR> <cms:contentshow element="Href"/><BR> </c:set></P>
<P> <br/>related_new_path=<c:out value="${related_new_path}"/><BR> [<BR> <cms:contentload<BR> collector="singleFile"<BR> param="${related_new_path}"></P>
<P> <br/>a:<cms:contentshow element="Title"/><BR> <br/>b:<cms:contentshow element="Title[1]"/><BR> <br/>c:<cms:contentshow element="RelatedNew/Title"/><BR> <br/>d:<cms:contentshow element="RelatedNew[1]/Title"/><BR> <br/>e:<cms:contentshow element="RelatedNew/Title[1]"/><BR> <br/>f:<cms:contentshow element="RelatedNew[1]/Title[1]"/><BR> </cms:contentload><BR> ]</P>
<P> </cms:contentloop><BR></cms:contentload></P>
<P><BR>a, b, c ... f ... no way (yes, at this point i'm just trying combinations... :)</P>
<P>is it possible to nest contendload tags?<BR>maybe i should avoid the nested contentload and use api functions...?</P>
<P>or maybe using xsl...</P>
<P><BR>mmm....what am i doing wrong??!! (i'm an opencms newbie, but... it's<BR>a really easy task!!!)</P>
<P><BR>OpenCms 6.0.2</P>
<P><BR>thanks for ur time<BR>Cristina<BR></P></DIV>
<DIV></DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #a0c6e5 2px solid; MARGIN-RIGHT: 0px"><FONT style="FONT-SIZE: 11px; FONT-FAMILY: tahoma,sans-serif">
<HR color=#a0c6e5 SIZE=1>
<DIV></DIV>From: <I>Siegfried Puchbauer <siegfried.puchbauer@gmail.com></I><BR>Reply-To: <I>The OpenCms mailing list <opencms-dev@opencms.org></I><BR>To: <I>The OpenCms mailing list <opencms-dev@opencms.org></I><BR>Subject: <I>Re: [opencms-dev] nested contentload</I><BR>Date: <I>Thu, 26 Jan 2006 14:10:20 +0100</I><BR>
<DIV></DIV><BR>Are you sure that an XPath in the following format works?<BR><SPAN style="FONT-FAMILY: courier new,monospace">SomeElement[1]/NestedElement[1]</SPAN><BR><BR>my experience was that only such xpaths work:<BR><SPAN style="FONT-FAMILY: courier new,monospace">
<DIV></DIV>SomeElement[1]/NestedElement</SPAN><BR style="FONT-FAMILY: courier new,monospace"><SPAN style="FONT-FAMILY: courier new,monospace">SomeElement/NestedElement[1]</SPAN><BR><BR>
<DIV><SPAN class=gmail_quote>its possible that it works in </DIV>6.0.4 ... i haven't tried it so far<BR><BR>2006/1/26, <A href="mailto:pascal.hollenbrock@bayerbbs.com">pascal.hollenbrock@bayerbbs.com</A> <<A href="mailto:pascal.hollenbrock@bayerbbs.com">pascal.hollenbrock@bayerbbs.com
<DIV></DIV></A>>:</SPAN>
<BLOCKQUOTE class=gmail_quote style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex">
<DIV></DIV><BR><FONT face=sans-serif size=2>Hey Cristina, </FONT>
<DIV></DIV><BR>
<DIV></DIV><BR><FONT face=sans-serif size=2>you have to adapt the element-description
<DIV></DIV>to the level of the nested content they can be found in, e.g.:</FONT>
<DIV></DIV><BR>
<DIV></DIV><BR><FONT face=sans-serif size=2><!-- nested level 1 --></FONT>
<DIV></DIV><BR><FONT face=sans-serif size=2><cms:contentload ...></FONT>
<DIV></DIV><BR><FONT face=sans-serif size=2> <cms:contentshow element="FirstElement[1]"></FONT>
<DIV></DIV><BR><FONT face=sans-serif size=2> ...</FONT>
<DIV></DIV><BR><FONT face=sans-serif size=2> <!-- nested level 2
<DIV></DIV>--></FONT>
<DIV></DIV><BR><FONT face=sans-serif size=2> <cms:contentshow element="FirstElement[1]/SomeNestedElement[1]"></FONT>
<DIV></DIV><BR><FONT face=sans-serif size=2> ...</FONT>
<DIV></DIV><BR>
<DIV></DIV><BR>
<DIV></DIV><BR><FONT face=sans-serif size=2>What you did was: </FONT>
<DIV></DIV><BR>
<DIV></DIV><BR><FONT face=sans-serif size=2><!-- nested level 2 --></FONT>
<DIV></DIV><BR><FONT face=sans-serif size=2><cms:contentshow element="SomeNestedElement[1]"></FONT>
<DIV></DIV><BR>
<DIV></DIV><BR><FONT face=sans-serif size=2>In this way however the system does
<DIV></DIV>not know which element to address. Therefore you have to add the absolute
<DIV></DIV>"nested path". </FONT>
<DIV></DIV><BR>
<DIV></DIV><BR><FONT face=sans-serif size=2>Regards,</FONT>
<DIV></DIV><BR><FONT face=sans-serif size=2>Pascal</FONT>
<DIV></DIV><BR><BR>_______________________________________________<BR>This mail is sent to you from the opencms-dev mailing list<BR>To change your list options, or to unsubscribe from the list, please visit<BR><A href="http://lists.opencms.org/mailman/listinfo/opencms-dev">
<DIV></DIV>http://lists.opencms.org/mailman/listinfo/opencms-dev</A><BR><BR></BLOCKQUOTE>
<DIV></DIV><BR><BR clear=all><BR>-- <BR>Mit freundlichen Grüßen<BR><BR>Siegfried Puchbauer
<DIV></DIV>
<DIV></DIV><BR>
<P>><BR>>_______________________________________________<BR>>This mail is sent to you from the opencms-dev mailing list<BR>>To change your list options, or to unsubscribe from the list, please visit<BR>>http://lists.opencms.org/mailman/listinfo/opencms-dev<BR>
<P></FONT></P></BLOCKQUOTE></div><br clear=all><hr>Éxitos, grandes clásicos y novedades. <a href="http://g.msn.com/8HMBESES/2755??PS=47575" target="_top">Un millón de canciones en MSN Music. </a> </html>