[opencms-dev] <cms:resourceload> get content of article
kaybe
kris.brys at redtree.be
Wed Nov 14 15:09:25 CET 2012
Oh goodie... I found it.
${cms:vfs(pageContext).readXml[res.filename].value['Paragraph/Text']}
Simple as that :thinking:
kaybe wrote:
>
> I made a collector where I am able to loop over the resource to print
> properties of the resource (title, propertyx, ...). How can I access the
> content of the resource for example Paragraph/Text?
> With contentload I can loop over the elements:
> <cms:contentshow element="Service/Name" />
> <cms:contentcheck ifexists="LoopElement">
> <cms:contentloop element="LoopElement">
> <cms:contentshow element="${opencms.filename}" />
> </cms:contentloop>
> </cms:contentcheck>
> Can I do a simular thing in resourceload? Or do I have to use a
> contentload in the resourceload? I was thinking to do a contentload in the
> resourceload by query but querying by fq=uuid:xxxx-xx-xxxxx-xxxx doesn't
> seem to give me the result.
>
>
--
View this message in context: http://old.nabble.com/%3Ccms%3Aresourceload%3E-get-content-of-article-tp34678499p34678733.html
Sent from the OpenCMS - Dev mailing list archive at Nabble.com.
More information about the opencms-dev
mailing list