[opencms-dev] Limit results show with cms:contentload

Thierry Collogne tcollogne at hotmail.com
Mon Jan 9 12:17:53 CET 2006


Hi all,

I have a custom xml content and use the following code to display

<cms:contentload collector="allInFolderDateReleasedDesc" 
param="/playground/events/news_${number}.html|wdog_article" editable="true">
				<h2><cms:contentshow element="Title" /></h2>
				<c:set var="dateString"><cms:contentshow element="Release"/></c:set>
				<p><%
					long date = 
Long.parseLong(pageContext.getAttribute("dateString").toString());
					out.print(CmsDateUtil.getDateTimeShort(date ));
				    %>
				</p>
				<cms:contentcheck ifexists="Image">
		 			<img src="<cms:link><cms:contentshow element="Image"/></cms:link>">
				</cms:contentcheck>
				<p><cms:contentshow element="Text"/></p>
</cms:contentload>

How can I limit the results shown? I have tried to examine the template-one 
template, but I can't figure it out





More information about the opencms-dev mailing list