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'];
Comments
Comment #1
kadimi commentedHere is the patchCorrected on the next post
Comment #2
kadimi commentedOk here it is again - Sorry!
Comment #3
mavimo commentedComment #4
salapataras commentedThera 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???
Comment #5
kadimi commentedI suggest you start a separate issue, it will probably get more attention.
Thanks.
Comment #6
salapataras commentedI have : http://drupal.org/node/1329180
Comment #7
akshita commentedHi 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
Comment #8
marcingy commentedThis is not critical
Comment #9
marcingy commentedLets actually put it back in the correct project.
Comment #9.0
marcingy commentedadded file name
Comment #10
kenorb commented