Page 1 of 1

[SOLVED]-TOP navi interaction with SIDE navi

Posted: Tue 2. Mar 2004, 14:01
by tommi
Hello, let me ask my question different :roll:
Is it possible to control the layout of the left side navigation by the horizontal navigation?
Clicking on the different items of {NAV_LIST_TOP} always show different items in the side navigation, defined by NAV_LIST_CURRENT :?:
Can I handle this with different templates?
greetings from Stuttgart, Tommi

Tutorial: How to let TOP_Navi interact with left/right side

Posted: Wed 10. Mar 2004, 17:28
by tommi
Easy, but for me as anewbie it worked out fine.
If some other newbies ask the same, here's the solution:
Problem:
horizontal top navigation, clicking every button changes the left side navigation table, displaying different menu items.
Solution:
A. Menu Structure
1. Create a top level hierarchy , e.g. "brand1", "brand2", "brand3"
2. Create more hidden categories in the top level. These are the levels that you want to show on clicking each different "horizontal top navigation button". For example: "gucci" or "boss" etc.
3.Create sucategories under each hidden item, for example under "gucci"
create "pants", "skirts", "underwear". Make sure they are all visible and public. Under these categories, add your articles.
B. Templates
1. Create your main template as you like, place {NAV_LIST_TOP} in the header section.
2.)Place {NAV_TABLE_COLUMN:X} in the left section, where X is the category of your hidden sub menu structure you created before, for example "gucci". You can't enter "gucci" by default, but the ID that you get by hovering over the small edit button in the admin structure section of phpwcms. for example cat=20 shwon in the browser status bar means entering 20.
3.)Create more templates, difference to the main template is always the cat ID in {NAV_TABLE_COLUMN:X}. This changes the outlook and items of your left navigation.
In side structure admin, make sure that you select the appropriate template for each structure level.
Now if you click on "brand1" (lets say its "gucci" :roll: )you get left side navigation with items §pants", "skirts", "underwear".
Do so for the other brands, too.!
Cheerrs, Tommi

Re: Tutorial: How to let TOP_Navi interact with left/right s

Posted: Wed 10. Mar 2004, 17:32
by cyrano
nice try, thanx for working out this.

you forget the sublevel models :-D