[opencms-dev] allInSubTreeDateDesc trouble

Paul-Inge Flakstad flakstad at npolar.no
Fri May 18 14:02:22 CEST 2012


Hi again Olli,

OpenCms' "Documentation for the 'cms:contentload' tag" lists and describes the different collectors. But - it doesn't mention any "allInSubTreeDateDesc" collector. So I'm guessing your previous unordered list was probably brought to you by a default collector.

Cheers and have a nice weekend,
Paul

From: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Olli Aro
Sent: 18. mai 2012 13:49
To: 'The OpenCms mailing list'
Subject: Re: [opencms-dev] allInSubTreeDateDesc trouble

Thanks Paul,

Yeah I noticed that if I use allInSubTreePriorityDateDesc it will work as expected.

Funny about the allInSubTreeDateDesc. One would expect that that one would be also looking for collector:date...

Regards,

Olli

From: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Paul-Inge Flakstad
Sent: 18 May 2012 12:21
To: The OpenCms mailing list
Subject: Re: [opencms-dev] allInSubTreeDateDesc trouble

Hi Olli,

The collector allInSubTreePriorityDateDesc should get the order right, as long as you're mapping a timestamp to the collector.date property, like this:
<mapping element="Published" mapto="property:collector.date" />

Best regards,
Paul

From: opencms-dev-bounces at opencms.org<mailto:opencms-dev-bounces at opencms.org> [mailto:opencms-dev-bounces at opencms.org]<mailto:[mailto:opencms-dev-bounces at opencms.org]> On Behalf Of Olli Aro
Sent: 16. mai 2012 11:53
To: opencms-dev at opencms.org<mailto:opencms-dev at opencms.org>
Subject: [opencms-dev] allInSubTreeDateDesc trouble

Hi all,

I have some news items I am collecting in my JSP using allInSubTreeDateDesc. The issue I have is that the order seems to be random. I have checked collector.date property for all items and the dates seem to be ok for them, so they should be in correct order.

Has anyone else experienced this? Any idea what might cause this?

Regards,

Olli


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20120518/0d3f51de/attachment.htm>


More information about the opencms-dev mailing list