page theme is not taking over page i select it for.

Comments

rstamm’s picture

need more info

which theme do you use and can you post the drupal paths to which the theme is assigned

rstamm’s picture

Status: Active » Postponed (maintainer needs more info)
glassbyd’s picture

I am having the same issue - on one site this module works fine - but on another I have set up my base theme as a Zen sub-theme and tried two different page themes for two different pages

Garland
New Zen sub theme

Neither is working and both are enabled

I am running this site under 6.13.

glassbyd’s picture

Just noted you wanted to know where stuff was

/public_html/sites/all/themes
where public_html is root

glassbyd’s picture

When I wake up the drupal paths are

thispage (using autoalias)

node/20 (deliberately not using aliases)

glassbyd’s picture

I have just been running some tests

threecol
node/20/edit
admin/build/page-theme/edit/bluemarine
node/6/edit
node/20
node/14/edit (node/14 and threecol are the same thing)

Using bluemarine (just because it was an obvious change)

threecol and node/20 don't work the other four do

rstamm’s picture

Do you use a related module such as Sections or Themekey?

Maybe Page theme will be overwritten by another module.

Check the module's callup with System information.
Go to Administer > Site configuration > System information and set modules list to Ascending sorted by module's call-up.
Go to Administer > Reports > System information > Drupal > Modules and post your modules list.

glassbyd’s picture

StatusFileSize
new5.21 KB

Sure Modules list attached as a .txt.

What is surprising is that this site is pretty similar to the site that is working fully - for which I thank you for the module!

rstamm’s picture

Modules list looks ok.

Tested with fresh installation but couldn't confirm.

Please check if there are any white spaces in your pages/paths settings and remove them.

The paths node/20 and node/20 are different pages.

glassbyd’s picture

StatusFileSize
new58.65 KB

Can I point out my earlier mail which notes that some of the pages are working and others aren't. The common theme is that the base pages aren't working, but the edit pages etc. are working?

The attached screenshot shows that they don't have spaces on the edit pages. They also don't on the URL aliases page

The top level pages all don't work so tose below don't pick up the page theme

node/14
node/20
Front
content/thispage2

Hope this helps

rstamm’s picture

Please enable devel module and add dvm('page_theme: '. $custom_theme); to function page_theme_init() in file page_theme.module.

It should looks like this:

function page_theme_init() {

  $path = drupal_get_path_alias($_GET['q']);

  $result = db_query('SELECT * FROM {page_theme} ORDER BY theme');
  while ($theme = db_fetch_object($result)) {

    $page_match = drupal_match_path($path, $theme->pages);
    if ($path != $_GET['q']) {
      $page_match = $page_match || drupal_match_path($_GET['q'], $theme->pages);
    }

    if ($page_match) {
      global $custom_theme;

      $custom_theme = $theme->theme;
      dvm('page_theme: '. $custom_theme);
      return;
    }
  }
}

check the output on every page which won't work.

rstamm’s picture

StatusFileSize
new871 bytes

A better way to find out which theme is used on which page is to use this small module.

It displays the value of the variable $custom_theme as Drupal message.

glassbyd’s picture

StatusFileSize
new18.62 KB
new2.5 KB
new2.49 KB

Sorry for the delay, but I am now back at my PC.

Actually just looking at the source tells me the same thing. Two files are attached one has the test page css files and the other has the node/21/edit css files . As you can see the test page is using the base css (artist) while the edit page is using the page theme allocated css (square). In both cases page theme (the third file) is set to use Square.

rstamm’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)