Content Archiving

Author Message

dee jay

Tuesday 14 November 2006 4:25:21 pm

I'm considering Ez Systems for a CMS. One of the requirements is for automated content archiving, preferably with the following features:

1. Automated archiving of "news" content. Ability to set archive date a specified period after the publish date. A default value of one month would be good.

2. Ability to search archived "news" content items, using regular search capability.

3. Ability to view archived "news" items by month/year or by news category. Would be good if news items could be grouped under their category heading when viewing by month/year.

Is there a component or add-on that could do this?

Thanks in advance.

Claudia Kosny

Wednesday 15 November 2006 1:39:45 am

Hi dee jay

All of this should be possible without major problems.

There is no standard archiving function in EZ (as far as I know) but it is easy to implement.
You could have a look at Lukasz' contribution http://ez.no/community/contribs/cronjobs which archived content based on a content attribute. Just adapt it so that it checks the published date of each article (which EZ stores by default) and archives a month after this date.

Create a folder 'archive' which will contain all archived articles. Use the cronjob to move the articles into this folder when required.

In the search functionality you can specify the subtree that is supposed to be searched, so just specify the archive subtree there when required.

To view the items by different criteria create a dummy node which will be responsable for fetching the articles. Create a specific template for this node and relay the view criteria to this template (using get, post or unordered view parameters). The template then verifies the provided criteria, computes the corresponding timestamps (if necessary) and then fetches all nodes in the article folder that match these criteria.
The grouping by news category is a bit trickier, I would order the retrieved articles by the content of the their category attribute and add a new new heading each time the content is different from the one before.
How to fetch get or post parameters (read the comments there as well): http://ez.no/doc/ez_publish/technical_manual/3_8/reference/template_operators/data_and_information_extraction/ezhttp
How to use view parameters:
http://ez.no/doc/ez_publish/technical_manual/3_8/concepts_and_basics/modules_and_views
How to fetch the required nodes:
http://ez.no/doc/ez_publish/technical_manual/3_8/reference/modules/content/fetch_functions/list

If you have any questions, just ask.

Greetings from Luxembourg

Claudia

Xavier Dutoit

Wednesday 15 November 2006 8:49:15 am

For the new category, I' suggest to use the http://ez.no/community/contribs/datatypes/enhanced_objectrelation

This would allow an easy selection of the categories.

You might need this
http://ez.no/community/contribs/template_plugins/objectrelationfilter

to do some magic in the selection of the archived+one category.

Otherwise, you could just let the article in their category and add a boolean archived and filter on that (you can create the archive cronjob starting with the exemple Claudia gave you).

X+

http://www.sydesy.com

dee jay

Wednesday 15 November 2006 7:59:25 pm

Thanks Claudia and Xavier ...

I'll research your suggestions.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.