Forums / Setup & design / Archives

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

eZ debug

Timing: Jan 31 2025 01:14:03
Script start
Timing: Jan 31 2025 01:14:03
Module start 'content'
Timing: Jan 31 2025 01:14:03
Module end 'content'
Timing: Jan 31 2025 01:14:03
Script end

Main resources:

Total runtime0.1750 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0073 587.7578370.3125
Module start 'content' 0.00730.0134 958.07031,005.4609
Module end 'content' 0.02070.1541 1,963.53133,893.6250
Script end 0.1749  5,857.1563 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00422.4005200.0002
Check MTime0.00120.7110200.0001
Mysql Total
Database connection0.00100.555510.0010
Mysqli_queries0.084648.37991410.0006
Looping result0.00110.60071390.0000
Template Total0.153887.910.1538
Template load0.00080.474410.0008
Template processing0.153087.425710.1530
Override
Cache load0.00050.263610.0005
Sytem overhead
Fetch class attribute can translate value0.00181.051710.0018
XML
Image XML parsing0.00030.148510.0003
General
dbfile0.00985.6161200.0005
String conversion0.00000.003330.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs