Forums / Developer / Differenciated menu bar for each pages

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>

eZ debug

Timing: Jan 18 2025 20:50:47
Script start
Timing: Jan 18 2025 20:50:47
Module start 'content'
Timing: Jan 18 2025 20:50:47
Module end 'content'
Timing: Jan 18 2025 20:50:47
Script end

Main resources:

Total runtime0.2004 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 587.8125180.8281
Module start 'content' 0.00660.0067 768.640697.8828
Module end 'content' 0.01320.1870 866.5234528.3281
Script end 0.2003  1,394.8516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00361.8087200.0002
Check MTime0.00140.6782200.0001
Mysql Total
Database connection0.00080.377810.0008
Mysqli_queries0.153476.56471410.0011
Looping result0.00140.68071390.0000
Template Total0.186793.210.1867
Template load0.00090.442710.0009
Template processing0.185892.728810.1858
Override
Cache load0.00060.315910.0006
Sytem overhead
Fetch class attribute can translate value0.00080.407310.0008
XML
Image XML parsing0.00030.155310.0003
General
dbfile0.00401.9964200.0002
String conversion0.00000.002530.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