[opencms-dev] <cms:contentload>: how to get size of collector?

marcio.camurati marcio.camurati.opencms at gmail.com
Tue Mar 25 04:22:26 CET 2008


Hi,

You can use the contentinfo for this, example:

<cms:contentload collector="allInFolderDateReleasedDesc"
param="/mysite/mynews/|news">
<cms:contentinfo var="info" scope="page" />
<c:if test="${info.resultSize > 0}">
...
</c:if>
</cms:contentload>

Regards.
Marcio Camurati


Vikrama Sanjeeva wrote:
> 
> Hi,
> 
>   Is there any way to get the size of collector loaded by
> <cms:contentload>?
> Instead of doing below, I would like to know the tag for getting collector
> size.
> 
> /******This is not good approach for getting collector size******/
> <cms:contentload collector="allInFolderDateReleasedDesc"
> param="/mysite/mynews/|news">
> <%newsCounts++;%>
> </cms:contentload>
> /************/
> 
> Also, from where I can get the cms tag lib documentation?
> 
> Thank you.
> 
> Bye,
> Viki.
> 
> 
> _______________________________________________
> 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
> 

-- 
View this message in context: http://www.nabble.com/%3Ccms%3Acontentload%3E%3A-how-to-get-size-of-collector--tp16232974p16267573.html
Sent from the OpenCMS - Dev mailing list archive at Nabble.com.




More information about the opencms-dev mailing list