[opencms-dev] nested contentload

Dvoretsky, Ann ADvoretsky at cme.com
Wed Feb 15 22:05:55 CET 2006


Hi All,
 
We're having a similar issue with nested contentloop tags. When we nest
the tags, it loops through the outer element in both loops, never
through the inner one. 
 
For example:
 
<cms:contentcheck ifexists="ContactTable">
<cms:contentloop element="ContactTable">
    <cms:contentcheck ifexists="ContactLink"><cms:contentloop
element="ContactLink"><tr><td><!--#include virtual="<cms:contentshow
element="ContactLink" />"
--></td></tr></cms:contentloop></cms:contentcheck>
</cms:contentloop>
</cms:contentcheck>
 
This outputs : 
 
<tr><td><!--#include virtual="?? ContactTable[1]/ContactLink[1] ??"
--></td></tr>
<tr><td><!--#include virtual="?? ContactTable[2]/ContactLink[1] ??"
--></td></tr>
<tr><td><!--#include virtual="?? ContactTable[3]/ContactLink[1] ??"
--></td></tr>
<tr><td><!--#include virtual="?? ContactTable[4]/ContactLink[1] ??"
--></td></tr>
 
Wondering if anyone has figured this out or is this a bug?
 
Thanks, Ann


________________________________

	From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Cristina
Carrozzino
	Sent: Tuesday, February 14, 2006 8:39 AM
	To: opencms-dev at opencms.org
	Subject: [opencms-dev] nested contentload
	
	

	 
	Hi,
	 
	we are trying to use nested contentload, but we are having
problems cause the first is displayed,not the second .
	Wat's wrong in our code?
	Note that we are trying also to parameterize the attribute
"param" in the nested contentload.
	Does Anyone has some suggestion?
	 
	 
	Here the code we are using:
	 
	<cms:contentload collector="singleFile" param="${opencms.uri}"
editable="true">
	      <c:set var="test" >
	           <cms:contentshow
element="Portlet02/PortletContentPath"/>
	      </c:set>
	       
	       <cms:contentload collector="singleFile"
param="${pageContext.test}" editable="true">
	               <%@ include
file="/system/modules/com.mypackage.test/pages/myarticle-detail.txt" %>
	       </cms:contentload>
	</cms:contentload>
	
	 
	 
	 
	Cristina

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


More information about the opencms-dev mailing list