Mega menu


(David Ronaldson) #1

Hello


I'm trying to figure out the best way of creating mega menus in Matrix. Using menu_normal with MySource_SUB won't work as we want the menu to contain other content as well as the menu.



My thoughts were to create a menu_normal with a nested asset listing (with dynamic parameters) inside… Something like this:


    
    
    
    


mega_menu would nest an asset listing with a dynamic parameter (Array of specific asset IDs or selection group - keyword asset_metadata_Mega_menu_id).

Each menu item would have a metadata field (Mega_menu_id) which we enter the asset id for the menu to appear.

This didn't work and I'm having some issues finding out how to pass parameters/values through nested content in the design file.

Apart from coding the full menu in html is there another way to do this?

Cheers

(Dmckinnon) #2

The thread here is quite helpful, and looks to be similar to what you’re trying to achieve.


We’re building something a more complicated mega menu which uses nested asset listings pointed to a configuration folder containing links, rather than the asset tree.

Let me know if you want more details about that.



Kind regards,

David


(David Ronaldson) #3

Thanks David.


I've seen that previous topic, however, I might be wrong but the mega menus there only contain links to child assets?



We are looking to be able to have other content within the menus, such as search tools and banners.



The only way I think of doing this is by nesting the content in elsewhere on the page and using javascript to show/hide the content OR by ajaxing it in.



Cheers