Share » Forums » General » Content Archiving

Content Archiving

Content Archiving

Tuesday 14 November 2006 4:25:21 pm - 3 replies

Author Message

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.

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu