[opencms-dev] Viewing 'expired' articles?
Robert Petermeier
robert2.0 at gmx.de
Fri Jan 27 12:38:03 CET 2006
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>'
HTH,
Robert
More information about the opencms-dev
mailing list