[opencms-dev] Writing own collector

Thomas Kiesl thomas.kiesl at bluemars.net
Wed Nov 22 11:26:47 CET 2006


Hi,

how can I map a Content of an XML Resource to the collector.date?

Thanx and best regards

Tom

Carl Alex Friis Nielsen schrieb:
> -----Original Message-----
> From: opencms-dev-bounces at opencms.org@KB On Behalf Of Thomas Kiesl
> <thomas.kiesl at bluemars.net>
> 
>> i want to sorts XMLContent Resources by an date which is included in the 
>> XML Content (a date field).
>> Is there a default collector which can handle this or how can i access 
>> the xml nodes of the XMLContent Resources :
>> Are there any method or do i have to parse each binary data into a xml 
>> document?
> 
> If you map the date to the collector.date property you can use the
> allInFolderPriorityDateDesc or allInSubTreePriorityDateDesc collectors
> to sort by that date - note that the collector.priority property must
> be the same.
> 
> If this doesn't do it for you you have to write your own collector - you
> might still want to map the date to some property so you don't have to
> parse every resource during collection.
> 
> Cheers,
> 
> Carl
> 
> _______________________________________________
> 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
> 


--
Mit freundlichen Grüßen

Thomas Kiesl

-- 
BLUE MARS - Gesellschaft fuer digitale Kommunikation mbH

Thomas Kiesl               mailto:thomas.kiesl at bluemars.net
Software Developer         http://www.bluemars.net
Ebersheimstraße 5          T +49.69.469973-0
60320 Frankfurt am Main    F +49.69.469973-99



More information about the opencms-dev mailing list