<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/4.1.92">
</HEAD>
<BODY>
Hello List,<BR>
<BR>
<BR>
This is my first post so greetings to everyone, and please bear with me.<BR>
<BR>
I have a custom schema with this date field defined in it:<BR>
<BR>
<PRE>
<xsd:element name="MyDate" type="OpenCmsDateTime" minOccurs="1" maxOccurs="1" />
I need to show listings ordered by this custom field. With some researh I found a collector and tried this in the JSPs:
<cms:contentload
collector="<B>allInFolderDateDesc</B>"
param="/internet/news/notes/content_%(number).html|MyContentType|15|<B>MyDate</B>"
pageSize="${param.pageSize}"
pageIndex="1"
editable="false">
</PRE>
<BR>
<BR>
But it does not work as I expected the list ordering is somewhat arbitrary. I have not found much documentation about this collector in particular so maybe something is wrong there.<BR>
<BR>
Any help is very appreciated. This is a production system in a public administration, and this change is important for my customer since currently it shows the news disorderly.<BR>
<BR>
<BR>
Version is OpenCMS 7.<BR>
<BR>
<BR>
Thank you,<BR>
<BR>
Jose
</BODY>
</HTML>