Differenciated menu bar for each pages

Author Message

Rio Murata

Friday 25 June 2004 4:06:15 am

Hello,

I am developing a set of pages that display the details of events and conferences.

There is a predefined set of details like below that a content manager can enter the details into. There are about 40 of them.

- Overview
- Format
- Agenda Day 1
- Agenda Day 2
- Agenda Day 3
- Speaker List
- Who Should Attend
- Solution Providers
- Venue & Acommodation
- Visa Information
- Pricing
- Media Partners
etc....

What I would like to achieve here is that each event displays a differentiated navigation menu selected from above. Each details have their own page on the website.

The question here is that each events has a slightly different set of details that are selectetd from the list above. For example, some event has only "Agenda Day 1" while others might have "Day 2" or have all three dates. Some have "Solution Providers" while others have "Media Partners".

I am wondering how to go about achieving this. Should I put all the predefined detail fields into a single content class and set the template to display the links a specific page only if there is an entry in that field? Or should I create separate contents classes for each of the details, make new sub-folder for each events and let content managers to select appropriate content classes for each?

Does anyone out there guide me to an efficient way to deal with this?

 

Alex Jones

Wednesday 30 June 2004 9:41:12 am

I would recommend setting up a base 'Event' class which includes an Object Relation List datatype. This will allow your editors to choose any fields they need for the event they are adding. Then you can set up your template to display any fields associated with that specific event. Having 40+ fields in your class can slow the system down a bit (I know this from experience), so I would avoid that choice if at all possible.

Alex
Come join the IRC channel: #eZpublish

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Roger Andersen

Thursday 01 July 2004 10:17:25 am

On what network is this IRC channel ?

Thanks

Alex Jones

Friday 02 July 2004 7:23:07 am

Freenode

Alex
bald_technologist on the IRC channel: #eZpublish
http://www.agrussell.com :: http://www.cuttingedge.com

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

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 22:32:20
Script start
Timing: Jan 18 2025 22:32:20
Module start 'layout'
Timing: Jan 18 2025 22:32:20
Module start 'content'
Timing: Jan 18 2025 22:32:21
Module end 'content'
Timing: Jan 18 2025 22:32:21
Script end

Main resources:

Total runtime1.3498 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 588.0313152.6406
Module start 'layout' 0.00600.0030 740.671939.4609
Module start 'content' 0.00901.3393 780.1328581.5078
Module end 'content' 1.34830.0014 1,361.640612.1563
Script end 1.3497  1,373.7969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.2601160.0002
Check MTime0.00140.1022160.0001
Mysql Total
Database connection0.00060.045610.0006
Mysqli_queries1.292095.7213620.0208
Looping result0.00070.0533600.0000
Template Total1.319097.720.6595
Template load0.00230.171620.0012
Template processing1.316697.542720.6583
Template load and register function0.00020.014010.0002
states
state_id_array0.00080.061810.0008
state_identifier_array0.00190.138620.0009
Override
Cache load0.00180.1361380.0000
Sytem overhead
Fetch class attribute can translate value0.00060.043030.0002
Fetch class attribute name0.00100.074850.0002
XML
Image XML parsing0.00070.053630.0002
class_abstraction
Instantiating content class attribute0.00000.001260.0000
General
dbfile0.00090.0658160.0001
String conversion0.00000.000840.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 18
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs