[opencms-dev] Troubles with nested content-loads (6.2)

Anatol opencms at recordcaster.de
Wed Apr 26 14:17:06 CEST 2006


Hi all!

I've troubles with Contentloads after importing from an old 6.0 version. 
Here some lines:

#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 >

I located the error in these lines. But an direct error was sadly not 
rised :( 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. I don't know why! Is exactly the same like in the old 
6.0 version.

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!?

Is it possible, that the contentload tag must not nested into an other 
contentloop tag!? 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!
Greetings
Anatol



More information about the opencms-dev mailing list