[opencms-dev] Contentload problem - more resource

Mario Jäger m.jaeger at alkacon.com
Wed Oct 7 09:48:31 CEST 2009


Hello Dang Van Thang,

there are different collectors in OpenCms you can use.

For a list view of xml content resources, you have to create a JSP page that uses the contentload tag as follows:

<cms:contentload collector="allInFolder" param="/folder1/folder2/articles/article_%(number).html|xmlcontent|25">
  ...
</cms:contentload>


The param attribute is used to give additional information to the collector: [filename]|[resource type name]|[count]

In the example above the folder /folder1/folder2/articles/ contains XML contents article_0001.html .. article_000n.html with the resource type name xmlcontent.

-- 
Kind Regards,
Mario.
 
-------------------
Mario Jäger
 
Alkacon Software GmbH  - The OpenCms Experts                    
http://www.alkacon.com - http://www.opencms.org           


Dang Van Thang schrieb:
> I has two resource (TypeA and TypeB) and I want to load it in one 
> <cms:contentload> tag.
>
> Please Help me.
>
>
> ------------------------------------------------------------------------
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev


      




More information about the opencms-dev mailing list