[opencms-dev] Viewing 'expired' articles?

Nigel Kersten nigel at cofa.unsw.edu.au
Mon Feb 13 04:35:46 CET 2006


On 27/01/2006, at 10:38 PM, Robert Petermeier wrote:

> Nigel Kersten schrieb:
>> I'm wondering if there is any way we can retrieve 'expired' XML  
>> content so that we could list it on an archive page?
>
> You could write your own resource collector which returns expired  
> items. The class has to be registered in the OpenCms config. Then,  
> it can be used by the contentload tag (which has an attribute  
> 'collector', IIRC) in the template for showing expired items.
>
> Take a look at
> - package org.opencms.file.collectors
> - class org.opencms.file.CmsResourceFilter
> - opencms-vfs.xml, element '<collectors>'

If I go down this path and write my own collector that ignores the  
expiry date, can I make it a module of my own? or do I have to modify  
the core OpenCMS distribution instead?

-- 
Nigel Kersten [Senior Technical Officer]
College of Fine Arts, University of NSW, Australia.
CRICOS Provider Code: 00098G





More information about the opencms-dev mailing list