It seems that there is a BUG when Drupal 7 is installed in minimal mode.

If Drupal-7.x-dev or Drupal-7.0-rc1 is installed in Minimal mode the Overlay will not work on node/add node/edit links even if all the installed modules are enabled in this configuration.
When Drupal-7.x-dev or Drupal-7.0-rc1 is installed in Standard mode Overlay will work on node/add node/edit links.

Comments

SB’s picture

Priority: Major » Minor

After 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.

SB’s picture

I 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).

David_Rothstein’s picture

Status: Active » Postponed (maintainer needs more info)

I'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

SB’s picture

Step 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.

David_Rothstein’s picture

Title: node/add node/edit now working in overlay if drupal is installed in minimal configuration » Configuring node add/edit pages to appear in the overlay doesn't work unless you close and open the overlay again
Version: 7.0-rc1 » 7.x-dev
Status: Postponed (maintainer needs more info) » Active

Thanks! 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.

SB’s picture

I 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.

burlap’s picture

I 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.

Pocketpain’s picture

sub

Pocketpain’s picture

Hey, 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!

Status: Active » Closed (outdated)

Automatically closed because Drupal 7 security and bugfix support has ended as of 5 January 2025. If the issue verifiably applies to later versions, please reopen with details and update the version.