Closed (outdated)
Project:
Drupal core
Version:
7.x-dev
Component:
theme system
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Feb 2013 at 14:14 UTC
Updated:
11 Jul 2013 at 15:57 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
mkalkbrennerSorry, I think I don't understand the question.
Can you be more specific or do an example?
Comment #2
stilllife00 commentedI have a theme, lets say MAINTHEME and then I have a subtheme of it, lets say CHILD. I would like to use ThemeKey to load CHILD only on some pages of the website and use MAINTHEME on the other, but I also would like to keep the inheritance of the css so the css of MAINTHEME are used by CHILD either.
Now it happens that CHILD is the only theme loaded in that pages, so no css from MAINTHEME, that is not what happens with Drupal by default...
Thanks
Comment #3
mkalkbrennerThat sounds like a bug.
What happens if you use CHILD as default theme without ThemeKey?
Comment #4
stilllife00 commentedIt works correctly inheritting css' from the MAINTHEME
Comment #5
mkalkbrennerI'll do a test ...
Comment #6
mkalkbrennerCan you post the .info file of CHILD?
Comment #7
stilllife00 commentedOn attachment
Comment #8
mkalkbrennerSeems like .info is not allowed for attachments ;-)
Please simply post the content.
Comment #9
stilllife00 commentedname = Child
Base theme = maintheme
description = blabla
package = Core
version = VERSION
core = 7.x
stylesheets[all][] = css/vacancie.css
regions[header] = Header
regions[languagesw] = Languagesw
regions[navbar] = Navigation bar
regions[content] = Content
regions[search] = Search
regions[filter] = Filter
regions[sidebar_left] = Sidebar left
regions[logo1] = Logobar
regions[footer] = Footer
regions[f-aboutus] = Footer about us
regions[f-departments] = Footer departments
regions[f-contact] = Footer contact
regions[f-disclaimer] = Footer Disclaimer
; Information added by drupal.org packaging script on 2011-01-05
version = "7.0"
project = "drupal"
datestamp = "1294208756"
Comment #10
stilllife00 commentedYour comments made me think and I got the issue. I changed the info file adding
engine = phptemplate
and removing the optional lines like version =
And remember to clear the theme AND css cache
Now is working! thanks
Comment #11
stilllife00 commentedComment #12
mkalkbrennerIt would be interesting to know what solved the issue exactly:
1. engine = phptemplate
2. removing the optional lines like version =
3. clear the theme AND css cache
1. and 2. will indicate a minor bug in drupal core.
3. will indicate a minor bug in ThemeKey, because we already clear the caches when the rules are saved.
Are you able to reproduce the issue?
Comment #13
stilllife00 commentedThe
engine = phptemplate
solved the issue but I don't think its a drupal bug since the documentation says that that line is compulsory, so was my fault (old files without the proper lines, maybe a copy paste from old code...)
The theme and css refresh was needed after (re)inserting that line ofcourse, I just forgot to refresh the CSS cache the first time so I wrote it here so people avoid to make the same mistake
Comment #14
mkalkbrennerThank you for the clarification.
Can you point me to the corresponding part of the documentation?
I guess that that line is compulsory for the parent theme, but maybe not for the child.
Comment #15
stilllife00 commentedhttp://drupal.org/node/171205#engine it says required in most cases
Comment #16
mkalkbrennerFor me it sounds like a bug. The assumption doesn't seem to work if the theme is set using hook_custom_theme()
Comment #17
mkalkbrenner