Universal CSS Navigation Menu Support Product Page

This topic was archived

mega menu Dynamic

Asked 07 Dec 2009 15:13:27
1
has this question
07 Dec 2009 15:13:27 David Chamberlain posted:
Is it possible to make a mega menu dynamic?

if so what approach would you use.

David

Replies

Replied 07 Dec 2009 16:54:41
07 Dec 2009 16:54:41 George Petrov replied:
Hi David,

We have that explained in the Manual:

www.dmxzone.com/go?17218&LinkFile=advanced_creating_dynamic.htm

There is also a video available: www.dmxzone.com/go?17213

The examples show a complete first level as dynamic menu, but you can actually also choose to make any level you wish as dynamic (from a recordset)

Greetings,
George
Replied 10 Dec 2009 01:38:49
10 Dec 2009 01:38:49 David Chamberlain replied:
I can see how it works for one level e.g. the mega menu column headings, but I also want it to work for the menu items under the column headings as well

I have the following table in mySQL



I want the two headings to be "Turkey 2009" and "Greece 2008"
with "First Night","Early Second Day" and "Blue Mosque" as the items under "Turkey 2009"

and under "Greece 2008" I want "Arrival" and "Acropolis"

I can see how to do it for one level but not for both.

Thanks,

David
Replied 10 Dec 2009 09:41:18
10 Dec 2009 09:41:18 Teodor Kuduschiev replied:
Hello David,

You should make your menu structure with Headings static. Then you can make your sublevel items under Headings dynamic.

Here we have an example with Sub Menu, but it's the same with the Mega Menu: www.dmxzone.com/go?17236
Replied 10 Dec 2009 10:37:58
10 Dec 2009 10:37:58 Patrick Julicher replied:
Hi David,

The CSS Navigation Menu was not designed to work with 2 dynamic levels. This would cause issues with nested repeat regions. There MIGHT be ways to do this, but not through the extensions interface, only with changes in the code.

Kind regards, Patrick
Replied 16 Dec 2009 18:23:12
16 Dec 2009 18:23:12 Rick G replied:
QuoteHi David,

The CSS Navigation Menu was not designed to work with 2 dynamic levels. This would cause issues with nested repeat regions. There MIGHT be ways to do this, but not through the extensions interface, only with changes in the code.

Kind regards, Patrick



I modded mine to work with 2 dynamic levels and also included some first level static links as well. It basically requires 2 tables (one for first level labels the second for actual links). if you work off of a 2 level static design you can see where you will need to add in your code for the repeated regions.

I needed a 2 level dynamic menu so links could be added/removed via a CMS and this extension really helped speed up the navigation build process.


I could supply example code if anyone would be interested in it.





Replied 16 Dec 2009 18:42:49
16 Dec 2009 18:42:49 George Petrov replied:
Hi Rick,

The newest version we just released have build in support for 2 level nested menus - also mega menus.

So check it out to see if it is about the same what you have done.

Greetings,
george
Replied 22 Dec 2009 22:52:06
22 Dec 2009 22:52:06 David Chamberlain replied:
George,

Thanks for implementing the two level dynamic menus in the latest (1.0.1) release but do you have a video or some documentation as to how to get it to work e.g. do I need two tables, one for each level? What columns should be in the table and how do I get the menu items under the right menu headings? I have had a few experiments with this but so far no success.
Replied 22 Dec 2009 23:25:31
22 Dec 2009 23:25:31 George Petrov replied:
Hi David,

You need just one recordset, having a column that has the main levels repeated, like:

id  category    product
------------------------
1   vegetables  beans
2   vegetables  carrot
3   vegetables  salarie
4   fruits      bananas
5   fruits      appels
6   fruits      pineapple


So in this case you will, choose to have this recordset and have the category field as break field. So when it changes value it will start another sub menu.

As menu title then you pick just the product as dynamic data field.

Hope it is a bit clear - will see if we can make a video of this later on.

Greetings,
George

Replied 23 Dec 2009 22:50:13
23 Dec 2009 22:50:13 David Chamberlain replied:
Thanks.
One of my problems was not ordering on the menu_heading column so things got mixed up a bit. Also I had the level above menu_heading which didn't help. Will give it another go.

David

Reply to this topic