Closed (outdated)
Project:
Drupal core
Version:
7.x-dev
Component:
overlay.module
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
3 Dec 2010 at 20:20 UTC
Updated:
9 Sep 2011 at 08:15 UTC
Jump to comment: Most recent
Comments
Comment #1
SB commentedAfter more digging this happens only if the Administration Theme remains on Default.
So, even if it's selected "Use the administration theme when editing or creating content" you must switch the default admin theme to Seven and then you can choose the default theme again.
Comment #2
SB commentedI also found this:
If I directly access a link like admin/structure from the browser adders bar, when I click on the links on the top navigation bar or any other links the overlay wont appear again until i go / (home).
Comment #3
David_Rothstein commentedI'm not sure I understand the bug, or how to reproduce it? When I try it, content creation pages display in the overlay when the "Use the administration theme when editing or creating content" checkbox is checked, and don't when it's not. It doesn't matter which theme I have set as the administration theme...
Comment #2 is a separate issue. See #854510: Visiting an admin page doesn't always display it in the overlay
Comment #4
SB commentedStep 1: Fresh install with minimal settings.
Step 2: Enable Overlay and Toolbar modules.
Step 3: Enable "Use the administration theme when editing or creating content"
Step 4: Create Content (Now the node/add node/edit will not appear in Overlay)
Step 5: Change the admin theme to any theme. Now, node/add node/edit will be displayed in overlay, with every admin theme.
I can't replicate the problem after the admin theme is changed once.
I think this may be a database issue only for the firs use when you install drupal 7 with minimal settings.
If you still can't replicate the problem I will make a video.
Comment #5
SB commentedhttp://www.screencast.com/users/yoyo_yoyo/folders/Jing/media/5ea6256b-e7...
Comment #6
David_Rothstein commentedThanks! I can reproduce this now. I think the reason I wasn't able to before was that I was closing the overlay and using the "Add new content" link in the Navigation menu, not staying in the overlay and using the content creation link at admin/content like you did in the video.
It looks to me like this is a more general bug. What happens is that the code in http://api.drupal.org/api/drupal/modules--overlay--overlay.module/functi... stores the list of administrative paths in a JavaScript setting in the parent window (outside the overlay). If you do something to change the list of administrative paths, such as checking the "Use the administration theme when editing or creating content" box, nothing happens immediately to update the data in the JavaScript setting on the parent page, so those pages aren't recognized as being targeted for the overlay yet. You have to either close and re-open the overlay (or do a full page reload) in order to trigger it to be rebuilt, and then it works.
I'm not really sure how we would go about fixing this, though.
Comment #7
SB commentedI think the best way to do this is by forcing a refresh when the user saves the configuration on "Administration theme", if this is not a solution maybe documenting this issue would be nice.
Comment #8
burlap commentedI don't know if it's exactly the same issue, but I get no overlay for add/edit content if administration theme is different than default and the option "Use the administration theme when editing or creating content" is not checked. I tried refresh, rebuild theme registry, open/close overlay.
If the option is checked, users without "View administration theme" permission get add/edit content page in the overlay with the default theme.
Comment #9
Pocketpain commentedsub
Comment #10
Pocketpain commentedHey, just discovered that it was Backup and Migrate that made my overlay buggy. So try to disable if you got it, and try again.
Peace!