Sorry if I have overlooked something, I have read all the documentation on theming as well as the module documentation I am trying to integrate with.

Here is what I am trying to accomplish.....

I will have a series of forms that need to be editable by administrators....

I would like these administrators to stay in the administration interface when adding forms (accomplished) editing forms (accomplished) and viewing results (have no idea where to start).

I am using the admin module http://drupal.org/project/admin it is a beautiful theme and very user friendly.

Have I overlooked something? Is this not possible? All help is appreciated.

-Taylor

Comments

jafster’s picture

Same problem here. I wish we could get some pro answers and solutions.

gerritvanaaken’s picture

This matches my issue: http://drupal.org/node/610410

lupas’s picture

You should include the following bit of code in your webform.module file:

// Added to support admin theme in webform results
function webform_init() {
  // Support admin theme setting, based on system_init().
  // Only affect the menu path created by this module, and only if the node admin theme checkbox is set.
  if (variable_get('node_admin_theme', '0') && arg(0) == 'node' && arg(2) == 'webform-results') {
    global $custom_theme;
    // Use the chosen theme ID, or the front-end theme if one hasn't been selected.
    $custom_theme = variable_get('admin_theme', '0');
   // From system.module, this css file is required in the admin view.
    drupal_add_css(drupal_get_path('module', 'system') .'/admin.css', 'module');
  }
}

Remember that you should have enabled "Use administration theme for content editing" in admin/settings/admin.
Good luck!

quicksketch’s picture

Title: Admin theme for Webform Results Pages » Use admin theme for Webform Results Pages
Version: 6.x-2.7 »
Category: support » feature

Let's move this to a feature request. This is a particular problem in 3.x now that webform configuration options aren't even under node/x/edit any more.

quicksketch’s picture

Status: Active » Fixed
StatusFileSize
new1.03 KB

I've committed the attached patch, essentially the same thing as #3 only adding support for the "webform" path and Admin module.

Status: Fixed » Closed (fixed)

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

dboulet’s picture

Version: » 6.x-3.x-dev
Status: Closed (fixed) » Needs review
StatusFileSize
new673 bytes

I have a small addition to the committed code from above. This patch assures that the 'Slate' theme is not activated if a custom admin theme has been set. See related issue: #623608: Can't set own admin theme for node add/edit pages.

quicksketch’s picture

This looks good but I'm not sure how it will affect existing installations of Admin module prior to beta5. Could you describe how this affects previous versions of Admin?

dboulet’s picture

This will only affect cases where the Admin module is installed, the 'use admin theme for content editing' option is enabled, and a custom admin theme has been chosen. It will use that custom theme instead of Slate.

vernond’s picture

My workaround for this was to create a standard admin theme under all/themes and enable it. Then I create an admin user role which is permitted to select own theme. When admin type of user logs in they can select either the current site theme (which is normally a fixed-width centered layout theme) or the admin theme (liquid-layout). The users seem to be happy that they can choose whether they want to "see the site as it really is" (i.e. default theme), or in the more admin-friendly wide screen view depending on what they're doing.

quicksketch’s picture

Status: Needs review » Fixed

I didn't see any adverse effect from this patch and it works as described. Committed to the Drupal 6 3.x branch.

Status: Fixed » Closed (fixed)

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