Closed (fixed)
Project:
Page Style
Version:
7.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Jun 2011 at 21:06 UTC
Updated:
8 Mar 2016 at 22:21 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
mrfelton commentedI wonder if this is related to #1215888: Pagestyle doesn't wok with site cache enabled.
Comment #2
slackrunner commentedI have the same exact issue. Subscribing.
Comment #3
CZ commentedThe module is designed out of the box, so we have to use the strongest CSS value "!important" to overwrite the used theme. It is only a problem by using Javascript and without reloading of the page.
Disable JavaScript (like in "Text Size") and reload the page can be a solution. Or arrange the theme and the Page Style CSS to fix this bug.
Comment #4
mgiffordPlease demonstrate how that can be done in your demo. Currently it still seems to be an issue with your demo.
Comment #5
CZ commentedThe demo pages are up to date (Drupal 7.7, Page Style 7.x-1.0).
Hack the file pagestyle.module on line 372 to:
See this hack now on the Drupal 7 Demo http://www.zwahlendesign.ch/drupal7/
Comment #6
CZ commentedTry using Firefox 5.0 or higher. Seems to be working (on the Drupal 6 Demo).
Comment #7
mgiffordSeems to work in Chrome & FF 5.x now. So is the change to comment out line 372 going to be coming in a future release? Is it in the dev version already?
Comment #8
CZ commentedIt works in FF 5 and FF 6 (Linux) and Chromium 12.0.742.112 (Linux) on Drupal 6.22 and Page Style 6.x-1.9 (not developer version). BUT not in Drupal 7.7 and Page Style 7.x-1.0. It can be a bug in the default theme of Drupal 7.
Comment #9
CZ commentedTested on FF 7.0.1 in Drupal 7.8 with the themes "zen" and "genesis". So maybe a jQuery bug and not a theme bug?
Comment #10
CZ commentedFixed.
Comment #12
rviner commentedI'm using Drupal 7.18 with the Zen theme and I would like to use the JavaScript way of switching between the page styles.
However I'm experiencing the same issue where I can't change back to the standard page style once a new page has been requested. I noticed the same thing is happening on your Drupal 7 test site. Is it possible to apply a fix for this?
Comment #13
rviner commentedReopened due to response in #12
Comment #14
reswild commentedThe problem is that the classes in the links to the CSS files are missing in the D7 version, and the JavaScript needs these in order to switch correctly beteen the page styles.
I'm attaching a patch for this.
Comment #15
mgiffordThis looks good to me. Fixes the problem I was having which caused me to disable this module.
Comment #16
kiralyj commented#14 patch is ok.
Comment #18
CZ commented