Hello there , i have made block menu integration module but i don't have CVS Account yet to release it. and till they verify my module i would like to help you guys to make mega menu better

i have handled multilingual menus also my module not limited by a menu

my idea is you create a new block menu block and choose menu as a source for manipulation.
then you can add blocks as menu item and you can assign that block as childe or put it in root as you like.
also i handled views block and i accept to pass argument to it.
and i have a render system render it like primary menu or secondary menu.

Finally i made some API to exchange my module information with others. and i want to hear from you guys what you want to receive my block integration menus data to render it as mega menu .

i don't want to duplicate mega menu functions because its already here and you are doing a good job so if you told me what you want so i can find out how to help you from my module also if you need help to adjust something in mega menu I'm here .

Thanks

Comments

Anonymous’s picture

That's awesome! Integrating blocks with megamenus is one of out top priorities. We'd love to have your help.

sabrawy’s picture

Ok That's good , how you whould like to get the data i can give you the integrated menu block data as array like this

Array ( [0] => Array ( [type] => menu [title] => test [link] => /devel/node [classlink] => mylinkid--260-block-link-item parentlinkid-0-formatter menu-weight_-50-sorter [id] => holder-id-260-plid-0-menu-weight_-50 [class] => plid-0 menu-weight_-50 [mlid] => 260 [plid] => 0 [weight] => -50 [below] => Array ( [0] => Array ( [type] => menu [title] => test child [link] => /devel/ [classlink] => mylinkid--261-block-link-item parentlinkid-260-formatter menu-weight_-50-sorter [id] => holder-id-261-plid-260-menu-weight_-50 [class] => plid-260 menu-weight_-50 [mlid] => 261 [plid] => 260 [weight] => -50 ) [1] => Array ( [type] => menu [title] => test2 [link] => http://localhost/devel/admin/build/menu-customize/primary-links [classlink] => mylinkid--262-block-link-item parentlinkid-260-formatter menu-weight_-49-sorter [id] => holder-id-262-plid-260-menu-weight_-49 [class] => plid-260 menu-weight_-49 [mlid] => 262 [plid] => 260 [weight] => -49 [below] => Array ( [0] => Array ( [type] => menu [title] => not translated [link] => /devel/node [classlink] => mylinkid--389-block-link-item parentlinkid-262-formatter menu-weight_-50-sorter [id] => holder-id-389-plid-262-menu-weight_-50 [class] => plid-262 menu-weight_-50 [mlid] => 389 [plid] => 262 [weight] => -50 ) ) ) ) ) [1] => Array ( [type] => menu [title] => english only [link] => /devel/node [classlink] => mylinkid--390-block-link-item parentlinkid-0-formatter menu-weight_-49-sorter [id] => holder-id-390-plid-0-menu-weight_-49 [class] => plid-0 menu-weight_-49 [mlid] => 390 [plid] => 0 [weight] => -49 ) ) Array ( [0] => Array ( [type] => menu [title] => test [link] => /devel/node [classlink] => mylinkid--260-block-link-item parentlinkid-0-formatter menu-weight_-50-sorter [id] => holder-id-260-plid-0-menu-weight_-50 [class] => plid-0 menu-weight_-50 [mlid] => 260 [plid] => 0 [weight] => -50 [below] => Array ( [0] => Array ( [type] => menu [title] => test child [link] => /devel/ [classlink] => mylinkid--261-block-link-item parentlinkid-260-formatter menu-weight_-50-sorter [id] => holder-id-261-plid-260-menu-weight_-50 [class] => plid-260 menu-weight_-50 [mlid] => 261 [plid] => 260 [weight] => -50 ) [1] => Array ( [type] => menu [title] => test2 [link] => http://localhost/devel/admin/build/menu-customize/primary-links [classlink] => mylinkid--262-block-link-item parentlinkid-260-formatter menu-weight_-49-sorter [id] => holder-id-262-plid-260-menu-weight_-49 [class] => plid-260 menu-weight_-49 [mlid] => 262 [plid] => 260 [weight] => -49 [below] => Array ( [0] => Array ( [type] => menu [title] => not translated [link] => /devel/node [classlink] => mylinkid--389-block-link-item parentlinkid-262-formatter menu-weight_-50-sorter [id] => holder-id-389-plid-262-menu-weight_-50 [class] => plid-262 menu-weight_-50 [mlid] => 389 [plid] => 262 [weight] => -50 ) ) ) [2] => Array ( [type] => block [weight] => 0 [module] => locale [delta] => 0 [mplid] => 260 [info] => ) ) ) [1] => Array ( [type] => menu [title] => english only [link] => /devel/node [classlink] => mylinkid--390-block-link-item parentlinkid-0-formatter menu-weight_-49-sorter [id] => holder-id-390-plid-0-menu-weight_-49 [class] => plid-0 menu-weight_-49 [mlid] => 390 [plid] => 0 [weight] => -49 ) )

this array will be the result of the integration. this array will be sorted and just need to render also it's sensitive to the language so if you are using i18n for menu it will get the translated menu items.

this array will just need go to your render function to be a menu
I already have my own render system to render it as primary menu block.

what you need to do ?
the problem that your only making mega menu from menu source and you just exporting one block for each menu.

in the same time i don't have limit for manipulation you make blocks as much you want using the same menu source if you want or others menu.

simple note: i think we can make a condition to see if my module is exist then we read the blocks arrays and send them to render if the user activate the output and export it as new block for mega menu.

also maybe i will add some modification in my module to not export block automaticly i will have a check box to do that because if someone going to use mega menu then he will not need my rendered block he will just need mega menu blocks

i will study your code next 2 days to know where I'm going to add my code. and i will keep you posted.

Also i will think how to make mega menu and my module can share management for my blocks to not let the user bothered and have to go to my module to manage the manipulation. and do it inside mega menu.

sabrawy’s picture

waiting for comment

azovsky’s picture

Where can I view the functional for the integration of blocks?
Thanks

sabrawy’s picture

download this http://drupal.org/files/issues/blockmenu_2.zip
it's working for d6 only you will have to do it again for d7

markwk’s picture

Did you make any progress on this issue? I'm interested in adding views or a block to one of the menu items in a site already using megamenus. I tried menu_view but having some issue there.