It appears that the Open Publish 'Admin' module forces the use of the embedded Slate theme for all document creation and editing. Setting the 'Site Configuration/Administration Theme' to another theme besides Slate enables the selected theme unless a document is created or edited wherein the Admin module appears to force the use of the ?disabled? Slate theme. I cannot find any Open Publishing setting to defeat this behavior and assert that the Administration Theme 'Use administration theme for content editing' checkbox should be respected. Disabling the Open Publish 'Admin' module appear to be the only way to completely disable the Slate theme.

Comments

febbraro’s picture

I dont have time right now to make a patch or dig much deeper, but as a quick test, if you add a test to the if statement on line 12 of openpublish_adminstration.module

Change:

  if (variable_get('node_admin_theme', 0) && (arg(0) == 'node' && is_numeric(arg(1)) && arg(2) != NULL)) {

to:

  if (variable_get('node_admin_theme', 0) && $admin_theme == 'slate' && (arg(0) == 'node' && is_numeric(arg(1)) && arg(2) != NULL)) {

Added a check to only override if admin theme is Slate.

febbraro’s picture

Project: OpenPublish » OpenPublish Core
Version: 6.x-1.x-dev » 6.x-1.8
Component: Admin Interface » Code

Moving to the proper project, this is for OP Core/Admin not the install profile itself.

irakli’s picture

Status: Active » Fixed

Fixed in 1.7.

Status: Fixed » Closed (fixed)

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