[opencms-dev] Nested Contentloads

Anatol opencms at recordcaster.de
Fri Apr 28 16:29:21 CEST 2006


Hi all!

Sorry, if I write again, but I 'm worry about my last mail was not 
perceived. I 've seen that an alike posting from january wasn't still 
answered. Is this  a daft question or to complex?

My problem is to use nested contentload-tags. In OpenCms version 6.0 
nested contentload-tags works fine but in the new 6.2. version the 
following lines didn't work:

#1 <cms:contentload collector="singleFile" param="ressort.conf" >
#2   <cms:contentloop element="Ressort">
#3    <b>Ressort:</b> <cms:contentshow /><br>
#4    <cms:contentload collector="singleFile" param="ressort1.conf">  
#5       BasePath: <cms:contentshow element="BasePath"/><br>
#6    </cms:contentload >
#7   </cms:contentloop>
#8 </cms:contentload >

The output of the 2nd contentshow tag is still empty. The first one in 
line #3 generated the right output, but the contentshow in line #5 
didn't work.

An other mysterium is that I can change the 2nd content load param in 
line #4 to what I like (i.e. param="res1451TorsGh1.conF") and there was 
no OpenCms error rised!!! That can't be right!?

If I changed the code to

#1 <cms:contentload collector="singleFile" param="ressort.conf" >
#2   <cms:contentloop element="Ressort">
#3    <b>Ressort:</b> <cms:contentshow /><br>
#4   </cms:contentloop>
#5 </cms:contentload >

#6 <cms:contentload collector="singleFile" param="ressort1.conf">  
#7    BasePath: <cms:contentshow element="BasePath"/><br>
#8 </cms:contentload >

it works! OK, not like I need it, but at least line #7 (2nd contentshow) 
now generates an output! I'm confused! :(

Hope you have an good idea and can told me what to do!
Greetings
Anatol



More information about the opencms-dev mailing list