Posted by tomsm on September 17, 2009 at 10:29pm
Jump to:
| Project: | SimpleMenu |
| Version: | 6.x-1.x-dev |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | AlexisWilke |
| Status: | active |
Issue Summary
I use "node relationships" which uses the module "Modal Frame API".
These frames are popups and I have enabled "Detect pop-up windows".
Other settings:
CSS selector to attach menu to: body
Attach method: Prepend
How can I stop Simplemenu from appearing in these Modal Frames?
Comments
#1
same problem.. thoughts?
#2
Yeah, I like the module, but it doesn't integrate well with the http://drupal.org/project/modalframe module unfortunately..
#3
Is the "Detect pop-up windows" option not working for you?
That flag is used to know whether a pop-up is opened and if so prevent Simplemenu from adding itself.
Or do you have the opposite problem, it does not appear when you'd like it to? Then again that "Detect pop-up windows" flag should be switched.
Thank you.
Alexis Wilke
#4
singularo,
I checked a little closer, I'm not too sure I understand what the modal frame does... Will it open another window in an IFRAME, or does it open a new tab, or does it do everything in an on screen pop-up?
Thank you.
Alexis
#5
I was having the same problem when working in panels. The problems is the z-index in the #simplemenu tag is set to 9999. This will cause it to display over everything. I adjust it to 2 and everything is fine now.
#6
Thank you Vc Developer for the info!
I will change my current code to offer 2 z-index inputs so we can have a different Z for the top bar and another for the drop down. At this point, I removed the drop down and that may not be a good idea.
Note that as far as large z-index go, to go over AddThis, I had to use 2,000,000... 8-P
Thank you.
Alexis Wilke
#7
Your Welcome! :)
...and also make to make adjustments to your content, for instance when I added the ddblock slider my drop down menu's were displaying behind it, so increased index. These dialog boxes should have the index value set to 9999. There should be some kind of guide line or stand indexing in Drupal so things like this wont happen.
#8
That's a non-Drupal problem when it comes to modules such as the AddThis. In that case, AddThis.com decided on a super high z-index in order to "make sure" that it covers everything in your website... Which for Simplemenu is annoying. Now maybe there is a way to change that AddThis behavior... (not from the current version of the module at least.)
Thank you.
Alexis Wilke
#9
Okay, the z-index fix was checked in. I will mark this issue as fixed for now. If you still have problems with the Modal Frame API, let me know and feel free to re-open this issue.
Thank you.
Alexis
#10
Good job! Ok, will do!
#11
Automatically closed -- issue fixed for 2 weeks with no activity.
#12
I was having the same problem with Modal Frame API and Node Relationships, and the "fix" described in this thread did not work for me. This is how you get rid of this problem once and for all:
Under "Show block on specific pages:" select "Show on every page except the listed pages." and then enter "noderelationships/*" in the text area. Now, Simple Menu will no longer show up in the modal windows generated by Node Relationships.
#13
chromix,
This is indeed a good way to avoid the menu on pop-ups.
It is listed in the list of known issues here:
https://secure.m2osw.com/doc_simplemenu_popup
There is even a nice screenshot 8-)
Thank you for the info though.
Alexis
#14
I had to copy modalframe-page.tpl.php in the theme directory and add a custom sytle to make it work with the Node Relationships module modal windows
<style type="text/css">#nosimplemenu #simplemenu {
display:none;
}
</style>
...
<body id="nosimplemenu">
#15
Hmmm... It's neat that adding some CSS works, but you still have the hit of loading the entire menu each time.
I'm reopening this issue so it gets looked at a little close as time allows. I'm thinking that using the Pages feature would be a better idea. One thing we could also look at is a way to mark a node as a non-simplemenu node. So all the nodes that can appear in your IFRAME would make sure that the menu does not get created in the first place.
Thank you.
Alexis
#16
The technique in #14 solved the issue for me. Thanks for posting it.
#17
aelling,
Wouldn't something like in #12 work for you?
Thank you.
Alexis