I have installed Role theme switch module, Page preview module and content theme module for my theming purpose.Having admintheme for Administrator and another default theme for anonymous user.I have logged in as administrator.I want to select the default theme for content creation,preview and editing for anonymous user's view.Installed content theme module for this purpose and selected System default theme in Structure -> Content theme->content wide .Even then i am getting admintheme for my page preview option while creating content

Comments

kavi93’s picture

Assigned: kavi93 » Unassigned
kavi93’s picture

Priority: Major » Critical
rstamm’s picture

Priority: Critical » Normal

The Content Theme module works fine. Only the settings are overwritten by the Role theme switch module. You can see it yourself if you enable the Content Theme Debugger module.

You have to give the Content Theme module a higher weight.

rstamm’s picture

Status: Active » Closed (works as designed)
escoles’s picture

Issue summary: View changes
Status: Closed (works as designed) » Active

Could you clarify: Do you mean to say that Content theme will only work if it has the highest weight of all modules which affect theme assignment?

I ask because Content Theme Debugger seems to be telling me that it's getting over-ridden by the default admin theme function. I'm seeing the following output:

Content Theme Debugger

  • Default theme: AT Sodexo Waste-Management Program Subtheme
  • Theme AT Sodexo Waste-Management Program Subtheme is set by content_theme_custom_theme()
  • Theme Seven is set by system_custom_theme()

So in order to ensure that this works, would we have to set it to a higher weight than whatever is controlling the admin theme setting?

mstrelan’s picture

It would appear you have to disable "Use the administration theme when editing or creating content" at admin/appearance for this module to have any effect on node add/edit forms. So the instructions for use on a single content type edit form should be as below.

  1. Disable "Use the administration theme when editing or creating content" from admin/appearance
  2. Set the Content wide theme for adding/editing content to "Seven" (or your admin theme) at admin/structure/content-theme/content-wide
  3. Set the Content type theme for adding/editing to the desired theme.
Collins405’s picture

I agree with mstrelan, however this now kills the overlay module.