[opencms-dev] cms:contentload - date created needed instead of datemodified
Carl Alex Friis Nielsen
cfn at kb.dk
Tue May 13 23:52:09 CEST 2008
Despite it not being mentioned in the documentation it was in the source last time I had a look at it.
If you want to work seriously with OpenCms you should download the source and read it - I learned a lot
about OpenCms by doing that.
Of course it might since have been removed, but why would anybody bother doing that ?
Remember it orders the result according to the collector.priority and collector.date properties, so you have to put some valid values there in order to get them sorted.
Did you attempt and succeed in getting the allInFolderPriorityDateDesc collector ro work ?
Cheers,
Carl
________________________________
Fra: opencms-dev-bounces at opencms.org på vegne af Marc Schlegel
Sendt: ti 13-05-2008 19:17
Til: The OpenCms mailing list
Emne: Re: [opencms-dev] cms:contentload - date created needed instead of datemodified
Hi
Thanks for the tip but it didn't work. There is also no such Collector
mentioned in the documentation.
Would it be easy (or lets say not to much work) to create an own
collector that just switches the
allInFolderPriorityDateDesc behaviour?
Best regards
-- Marc
Carl Alex Friis Nielsen schrieb:
> Hello,
>
> If you can get the desired date to the collector.date property the allInFolderPriorityDateAsc
> collector might do the job for you.
>
> If you want to create your own collector download the OpenCms source
>
> Cheers,
>
> Carl
>
>
>> -----Original Message-----
>> From: opencms-dev-bounces at opencms.org
>> [mailto:opencms-dev-bounces at opencms.org]On Behalf Of Marc Schlegel
>> Sent: Saturday, May 10, 2008 3:30 AM
>> To: opencms-dev at opencms.org
>> Subject: [opencms-dev] cms:contentload - date created needed
>> instead of
>> datemodified
>>
>>
>> Hello Everyone
>>
>> I am having a problem with a contentload-tag because it is
>> loading the
>> elements according to their modified date (so´, the last
>> modified is the
>> first in the list) but I need to have the last created
>> element to be the
>> first one
>>
>> I am using the "allInFolderDateReleasedDesc" collector
>> because I thought
>> this one provides this functionality. How can I achieve this?
>> If I need
>> to create my own collector, how can I do this (and use it in the tag)?
>>
>> best regards
>> -- Marc
>>
>>
>>
>>
>> _______________________________________________
>> 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
>>
>>
>
> _______________________________________________
> 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
_______________________________________________
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 6720 bytes
Desc: not available
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20080513/f2c12f5d/attachment.bin>
More information about the opencms-dev
mailing list