Forums / Setup & design / Multiple Menus (by section?)

Multiple Menus (by section?)

Author Message

Jacob C

Tuesday 18 January 2005 12:40:27 pm

I'm attempting to create two distinct menus, both w/ different links to different areas of the site and I'm not sure what the best way to do this is. I thought about creating different sections and filtering them in my templates but since I'm new to ezpublish I don't have the template syntax down yet or the time to really study the whole system. Can anyone help or point me in the right direction? Thanks.

Arran Price

Tuesday 18 January 2005 7:29:06 pm

Hi Jacob,
I think this probably depends on the structure of your site.
This sounds similar to something I have been doing myself lately so may be able to help.
Can you explain a little how you intend the menus to work, and how the site is layed out? ie is the different areas of the site you are talking about based on which node/folder they branch off from?

The two options that spring to mind without knowing anything further are, you can use sections and use override templates dependant on the section to display different menus - or potentially you need to determine the node your area branches off and use that in some logic to determine which menu to display (due to our section layout this was the best approach for us).

Hope thats of some help

cheers

Arran

Jacob C

Wednesday 19 January 2005 5:19:08 pm

What I have in mind is this (2 seperate menus + 1 'hidden' link):

1) a top menu with the following top-level choices (these are just generic product categories): Apples | Pears | Peaches | Grapes. These may or may not eventually have sub-categories (not really important atm).

2) a bottom menu with links to: Privacy Policy | Company Info | Contact Us (and so on)

3) Also, there is a specific section that can only be viewed by clients who are logged in. Each seperate client has their own inventory which I would like to display via a 'My Inventory' link that appears in the top menu once the client logs in. I have this figured out to a point by using sections. The one problem I run into here is that there is no way to create multiple 'My Inventory' links in the node tree at the same level (and still keep things organized - would be nice to have a seperate field for entering the link name!!), since of course they would all be called the same thing :/ In any case, I would be happy with 'Client A Inventory', 'Client B Inventory' etc.

So here's how the menus would be logically seperated:

Top Level
|
|- General Links
|- Apples
|- Pears
|- Peaches
|- Grapes
|
|- Client Inventory
|- Client A
|- Client B
|
|- Company Links
|- Privacy Policy
|- Company Info
|- Contact Us

I'm guessing ezpublish will force me to put these all on a single level and divide them up somehow w/ sections... Thanks for your help!

eZ debug

Timing: Jan 18 2025 16:00:45
Script start
Timing: Jan 18 2025 16:00:45
Module start 'content'
Timing: Jan 18 2025 16:00:45
Module end 'content'
Timing: Jan 18 2025 16:00:46
Script end

Main resources:

Total runtime0.9489 sec
Peak memory usage4,096.0000 KB
Database Queries194

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0078 589.1406180.8359
Module start 'content' 0.00780.8015 769.9766479.1094
Module end 'content' 0.80930.1395 1,249.0859333.4766
Script end 0.9488  1,582.5625 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.4305210.0002
Check MTime0.00150.1555210.0001
Mysql Total
Database connection0.00150.154410.0015
Mysqli_queries0.879192.65251940.0045
Looping result0.00180.18741920.0000
Template Total0.916896.620.4584
Template load0.00190.196320.0009
Template processing0.914996.420920.4575
Template load and register function0.00010.014510.0001
states
state_id_array0.00120.131410.0012
state_identifier_array0.00110.115620.0005
Override
Cache load0.00160.1639370.0000
Sytem overhead
Fetch class attribute can translate value0.00130.136630.0004
Fetch class attribute name0.00100.105130.0003
XML
Image XML parsing0.00060.059130.0002
class_abstraction
Instantiating content class attribute0.00000.000830.0000
General
dbfile0.00660.6943210.0003
String conversion0.00000.000730.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
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs