The <cms:contentinfo> tag

This tag is used to get more information about the result set collected by a content collector.

Attributes:

Name Description Required
var

Defines the name to access the contentinfo bean.

yes
scope Defines the scope used to store the contentinfo bean (default: page) no
value Value is a macro value to access a single value from the bean.
Values provided by the contentinfo bean:
  • name.resultSize: returns the total number of collected XML contents
  • name.resultIndex: returns the index of the current XML content, starting with 1   
no

Body:

This tag has no body content!

Example usage:

To get the number of results returned by a collector:

...
<cms:contentinfo var="info" />

<!-- use "info" for validation -->
<c:if test="${info.resultSize > 0}">
...