[opencms-dev] nested content access with Scriptlet

Markus Mahnig markus.mahnig at sonydadc.com
Mon Jul 3 08:50:50 CEST 2006


Hey List,

did a research on the List, but didnt see the light...

i have following custom XSD XML Content; 
Random amount of Blocks with random amount of Teaser-Urls within.


<cms:contentloop element="Block">
>    <cms:contentloop element="Teaser">
>       <cms:contentshow />
>    </cms:contentloop>
> </cms:contentloop>

But since the Teasers are Urls from the VFS, how can i acces the Teaser with
Scriptlet? usually i would use

teaser = cms.getContent(cms.getRequestContext().getUri(),
"Teaser["+counter+"]", cms.getRequestContext().getLocale());
> 	...
> 	<%cms.include(teaser, "MyTeaserElement");%>
> 	<%cms.include(teaser, "MyTeaserElement2");%>
> 
but this wont work within the "block"

Anyone knows a (better) way to include a File?

(ah, forgot: im still on OpenCms 6.0.0; Upgrade needed for that?)

-- 
View this message in context: http://www.nabble.com/nested-content-access-with-Scriptlet-tf1882952.html#a5147275
Sent from the OpenCMS - Dev forum at Nabble.com.




More information about the opencms-dev mailing list