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!

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