The title describes this quite well.

I could use an option to view the node embed form with the administration theme because the default theme is not suited for the form's small display space

CommentFileSizeAuthor
#4 node_embed-admin_theme-1658682-4.patch577 bytesdrupov

Comments

eyal shalev’s picture

Status: Active » Needs review
lewisnyman’s picture

Status: Needs review » Active

I've tried switching the view to admin/ckeditor-node-embed and it breaks the functionality. In my opinion it makes little sense for this view to be available for front end users. We'd need to figure out how to retheme the insert modal so it doesn't break.

gmclelland’s picture

Might need to use something like the following:
https://api.drupal.org/api/drupal/modules%21system%21system.api.php/func...

Untested, but you might need to add this to node_embed.module

/**
 * Implements hook_admin_paths().
 */
function node_embed_admin_paths() {
  $paths = array();
  if (variable_get('node_admin_theme')) {
    $paths['ckeditor-node-embed'] = TRUE;
    $paths['ckeditor-node-embed/*'] = TRUE;
  }
  return $paths;
}

Let me know if that works

drupov’s picture

Version: 7.x-1.0 » 7.x-1.x-dev
Assigned: Unassigned » drupov
Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new577 bytes

Yes, this works. Thank you!

I've turned your code snippet into a patch.

tessa bakker’s picture

Status: Needs review » Needs work

works perfect, but don't like the comment after the function

tessa bakker’s picture

Status: Needs work » Reviewed & tested by the community

works perfect, but don't like the comment after the function

mrharolda’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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