simplemenu disappears if theme_developer module is enabled

dan_lennox - October 2, 2008 - 07:05
Project:SimpleMenu
Version:6.x-2.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

When enabling the theme_developer module the simplemenu disappears entirely. Looks like the default css for the two modules might be conflicting. I can probably provide a patch for this in the near future once our company moves to Drupal 6.

#1

dan_lennox - October 2, 2008 - 07:06
Title:simplemenu disappears when the theme_developer module is enabled» simplemenu disappears if theme_developer module is enabled

#2

markosef - November 30, 2008 - 08:28

yeah, i confirm it. when u activate. I would before suspect on JS clashing but just gusessing.

#3

glueckskind - December 5, 2008 - 08:08

Confirm +1

#4

Roger López - December 7, 2008 - 01:31
Status:active» postponed

so the problem lies in the fact that theme developer wraps every piece of themed output is wrapped in a span. this effects the way that suckerfish.js works, since the markup doesn't match what is expected.

this could be fixed by not using any theme functions to output the menu, but that would require duplicating a lot of code from the menu module.

#5

Roger López - December 7, 2008 - 19:14
Status:postponed» active

see http://drupal.org/node/233082#comment-1143834

#6

markosef - December 11, 2008 - 16:22

but "administration menu" module works fine, and its pretty the same if not better.

#7

AlexisWilke - December 12, 2008 - 10:39

I found the solution to this problem.

MANY themes will not properly close their body. Before the </body> tag, you are supposed to have this:

<?php
print $closure
?>

and if you don't the menu disappears because the JS does not make it in the page at all.

I just spend 1h looking into that!

So fix the theme, simplemenu works great otherwise. 8-)

Thank you.
Alexis Wilke

#8

Roger López - December 12, 2008 - 15:10
Version:6.x-1.x-dev» 6.x-2.x-dev

Thanks for tip Alexis but these issue is definitely caused by the extra span tags created by devel_themer.module.

Your point about themes not printing $closure is an important one, but not related to this issue.

#9

darrindickey - May 8, 2009 - 14:12

Wow! I turned off devel_themer to keep it from interfering with Simple Menu and it actually solved another problem for me. I haven't been able to upload images to my nodes (via Imagefield & ImageAPI). I've spent hours trying to figure out what was wrong. After I turned off devel_themer I tried an upload again just to see if those extra spans might have been a problem. Turns out they were. Upload works great now.

Maybe this will help someone else.

#10

ccshannon - September 15, 2009 - 19:34

Oh wow, you just saved me from smashing my head open on my desk. What a mess that would have been!

Pixture theme has this issue. I could NOT get Simplemenu or Admin Menu to show up, even though the .js files were properly referenced in the header and there were no .js errors.

I added that line to page.tpl.php and BOOM. Menu shows up.

Thanks for that one!!! My head thanks you, my desk thanks you, etc.

#11

AlexisWilke - September 16, 2009 - 06:02

ccshannon,

Yeah... watch out for your head! 8-) [suggestion: next time, buy a soft desk?]

I'm glad my comment help, although it seems that this very issue is for another problem.

Best,
Alexis Wilke

#12

droopysteve - September 23, 2009 - 09:00

devel_themer destroys my simplemenu, which has contents from taxonomy_menu, more worrying when I go to the views admin page and hit a "+" symbol, the top simplemenu gets cloned below itself and the views page doesn't work????

 
 

Drupal is a registered trademark of Dries Buytaert.