If you add a link to your mega menu with a path like candidates?gendre=M, Marinelli's Mega menu will only display candidates making your link inaccurate.

After a bit of research, I found that this issue already existed in Megamenu modules, and a patch has been released:
http://drupal.org/node/1167776

I do not know how to write patches, so the lines missing in theme.inc are:

$options = array();
/* missing */ options += $value['link']['localized_options'];
...
$options = array('class' => array('menu-section-link'));
/* missing */ options += $value2['link']['localized_options'];
...
$options = array('class' => array('menu-leaf-link'));
/* missing */ options += $value3['link']['localized_options'];
CommentFileSizeAuthor
#1 1234516.patch2.12 KBkadimi
#2 1234516.patch1.41 KBkadimi
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kadimi’s picture

Status: Reviewed & tested by the community » Active
FileSize
2.12 KB

Here is the patch
Corrected on the next post

kadimi’s picture

FileSize
1.41 KB

Ok here it is again - Sorry!

mavimo’s picture

Status: Active » Reviewed & tested by the community
salapataras’s picture

Thera are one more problem that the mega menu take all link without check the language and dispaly all the link regardless there language. Can anyone help my please???

kadimi’s picture

I suggest you start a separate issue, it will probably get more attention.

Thanks.

salapataras’s picture

Akshita’s picture

Project: Marinelli » Drupal core
Version: 7.x-3.0-beta11 » 7.0
Component: Code » menu system
Priority: Major » Critical

Hi Kadimi

I have an issue with Mega menu. I have a redirect script (customized) which works fine on the right nav elements of any node.

But from the mega menu the query string disappears.

For example : Mega Menu (Main menu from the home page)

Divisions(Main Tab) and on click I have drop down

Divisions->D1 -D2 (If I use redirect script on d2 like (redirect?path=abcd) then when I try to access the link D2 then URL shows only http://mydomain.com/redirect)

Here is my code:

/* Add a system path that we can use to redirect content */

function my_custom_menu() {
$items['redirect'] = array(
'title' => 'Perform Redirect',
'description' => '',
'page callback' => 'my_custom_redirect',
'page arguments' => array(''),
'access arguments' => array('access content')
);
return $items;
}

function my_custom_redirect() {
$path = $_GET['path'];
header("Location: $path");
}

Any Help is appreciated.

Thanks in advance

marcingy’s picture

Priority: Critical » Normal

This is not critical

marcingy’s picture

Project: Drupal core » Marinelli
Version: 7.0 » 7.x-3.0-beta11
Component: menu system » Code
Priority: Normal » Major
Status: Active » Reviewed & tested by the community

Lets actually put it back in the correct project.

marcingy’s picture

Issue summary: View changes

added file name

kenorb’s picture