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
|