Hi there,

On our site we have editors add content using the Seven theme.

When I bring up the Entity Embed Dialog from my WYSWIG button I can see (from Chrome Network tab) that it goes back to the server and loads my default theme. This ends up breaking the look of my buttons, and what have you.

I think I have found a solution to this. It involves telling Drupal that the URL of the dialog should be treated as an admin path. I added this hook into one of my own modules, but I think it might be good in Entity Embed (please).

/**
 * Implements hook_admin_paths().
 */
function entity_embed_admin_paths() {
  if (variable_get('node_admin_theme')) {
    $paths = array(
      'entity-embed/dialog/*' => TRUE,
    );
    return $paths;
  }
}
CommentFileSizeAuthor
#3 ajax-base-page-theme-2561321-3.patch466 bytesdevin carlson

Comments

AndyThornton created an issue. See original summary.

devin carlson’s picture

Project: Entity Embed » Dialog

Moving to the Dialog queue.

devin carlson’s picture

Project: Dialog » Entity Embed
Status: Active » Needs review
StatusFileSize
new466 bytes

The Dialog issues are fixed, the remaining task is to use ajax_base_page_theme as the theme callback for the Entity Embed dialog form.

devin carlson’s picture

Status: Needs review » Fixed

Tested #3 and committed to Entity Embed 7.x-3.x.

  • Devin Carlson committed 8fd243e on
    Issue #2561321 by Devin Carlson: Use the AJAX base theme for the embed...

  • Devin Carlson committed 80ccca7 on 7.x-2.x
    Issue #2561321 by Devin Carlson: Use the AJAX base theme for the embed...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.