Archives

Author Message

Ole Brudvik

Monday 22 August 2005 8:38:59 pm

Hi there, we are setting up an archives section on our site. We have 5 sections which we want one archive page for with heading for each section and listing the articles under for each section.

Our test site can be reached here: teach.crpp.nie.edu.sg

Can anybody give us some advice or sample code for doing this?

Thanks alot!

Ole

Marko Žmak

Monday 22 August 2005 11:25:21 pm

This doesn't seem difficult to implement... But depends on what exactly you want to obtain. Here's one sollution for your site:

- create a folder Archive and it's subfolders:

Ideas
Voices
Share
Enrich
Relax

- then when you want to archive a message, just move it to the appropriate archive folder, e.g. from /ideas/ to /archive/ideas

This is only one sollution, but it's easy to implement, it doesn't require much new template code (maybe only adding some links to the archives).

Does this sollution suit you, and do you need more help?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Ole Brudvik

Wednesday 24 August 2005 3:01:18 am

Thanks for your reply. We want one acrive page wit all the sections one the website. Each of the sections willl have one title and under the artyicles listed for that section. This for each of the 5 sections.

Appreciate if you can help me :)

Cheers
ole

Marko Žmak

Wednesday 24 August 2005 5:07:43 pm

The post I posted above resolves your problems. You just have to create a template override for the Archive page that will display all it's subfolders as titles, and list content of their subnodes.
My suggestion is to create a custom class "Archive Folder" and make template override fo it so you can use it in different places in the future.

I could write you the complete code if I had the time... but unfortunately I don't right now :(

You could wait if I get some free time in the next days, or learn how to do it by reading the documentation.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Ole Brudvik

Wednesday 24 August 2005 6:09:24 pm

Mark thanks alot for you help so far. i understand you guidelines. since im new to ez, if you can continue to help me i would very much appreciate it.

Cheers
Ole

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

eZ debug

Timing: Jan 18 2025 19:09:54
Script start
Timing: Jan 18 2025 19:09:54
Module start 'layout'
Timing: Jan 18 2025 19:09:54
Module start 'content'
Timing: Jan 18 2025 19:09:54
Module end 'content'
Timing: Jan 18 2025 19:09:54
Script end

Main resources:

Total runtime0.6889 sec
Peak memory usage4,096.0000 KB
Database Queries63

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 587.7891152.6094
Module start 'layout' 0.00560.0029 740.398439.3984
Module start 'content' 0.00850.6787 779.7969563.0938
Module end 'content' 0.68720.0016 1,342.890612.2031
Script end 0.6888  1,355.0938 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4859160.0002
Check MTime0.00140.2036160.0001
Mysql Total
Database connection0.00080.110210.0008
Mysqli_queries0.630491.5082630.0100
Looping result0.00050.0763610.0000
Template Total0.657695.520.3288
Template load0.00210.308320.0011
Template processing0.655595.151320.3277
Template load and register function0.00020.034310.0002
states
state_id_array0.00070.107610.0007
state_identifier_array0.00120.167320.0006
Override
Cache load0.00180.2654350.0001
Sytem overhead
Fetch class attribute can translate value0.00050.075620.0003
Fetch class attribute name0.00110.156860.0002
XML
Image XML parsing0.00070.098420.0003
class_abstraction
Instantiating content class attribute0.00000.002070.0000
General
dbfile0.00080.1218180.0000
String conversion0.00000.001140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 21
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs