When I create a new subtheme of Bartik I have the following errors:
* Notice: Undefined index: featured in include() (line 151 of /var/www/sites/all/themes/bartik/page.tpl.php).
* Notice: Undefined index: triptych_first in include() (line 204 of /var/www/sites/all/themes/bartik/page.tpl.php).
* Notice: Undefined index: triptych_middle in include() (line 204 of /var/www/sites/all/themes/bartik/page.tpl.php).
* Notice: Undefined index: triptych_last in include() (line 204 of /var/www/sites/all/themes/bartik/page.tpl.php).
* Notice: Undefined index: footer_firstcolumn in include() (line 230 of /var/www/sites/all/themes/bartik/page.tpl.php).
* Notice: Undefined index: footer_secondcolumn in include() (line 230 of /var/www/sites/all/themes/bartik/page.tpl.php).
* Notice: Undefined index: footer_thirdcolumn in include() (line 230 of /var/www/sites/all/themes/bartik/page.tpl.php).
* Notice: Undefined index: footer_fourthcolumn in include() (line 230 of /var/www/sites/all/themes/bartik/page.tpl.php).
The subtheme is a simple one. No customizations beyond creating the subtheme:
--------------------------------------------------------------------------------
name = Redendor
description = Customizing subtheme.
version = 0.1
core = 7.x
engine = phptemplate
base theme=bartik
stylesheets[all][] = css/empty.css
--------------------------------------------------------------------------------
In Garland it works (but looks ugly :-))
Comment | File | Size | Author |
---|---|---|---|
#16 | issue-1145374.patch | 696 bytes | Torenware |
Comments
Comment #1
bleen CreditAttribution: bleen commented@juarezr ... please clear your cache and check one more time. You happened to be trying this just as some changes were being made yesterday to the location of page.tpl.php
Comment #2
jensimmons CreditAttribution: jensimmons commentedYes. Or can someone else test this out. Use Bartik as a parent, and see if you run into any problems.
Comment #3
Jeff Burnz CreditAttribution: Jeff Burnz commentedI've done a bunch of them, no problems to report as yet. I'm not sure if docs exist for setting up a colorable subtheme, if not these should be written.
Comment #4
jensimmons CreditAttribution: jensimmons commentedAh, a documentation task.
The bug report is > won't fix. ('Cause there isn't a bug)
Comment #5
jensimmons CreditAttribution: jensimmons commented.
Comment #6
jensimmons CreditAttribution: jensimmons commentedI don't know that there is anything special to subtheming Bartik that's any different from subthemeing another Drupal theme. So.... docs?
I'm setting this to won't fix. I don't think there's an issue here.
Comment #7
rorymadden CreditAttribution: rorymadden commentedI encountered this as well and since this is the first link on google I thought I'd post this for those that get the errors above and don't know whats happening.
Sub-themes do not inherit regions from the parent theme. Therefore if you create a sub-theme you need to re-specify all of the regions again. Also Color module integration is not inherited. The easiest way to create a sub-theme is as follows (this works for me, feel free to correct me if I am wrong):
1. Copy the bartik theme from \themes
2. Paste it into \sites\all\themes
3. Rename the folder to mytheme (obviously replace mytheme with whatever name you like)
4. Open the folder and rename bartik.info to mytheme.info
5. Delete the template.php file (or empty its contents)
6. Open mytheme.info and add the line "base theme = bartik" under the line core = 7.x
7. Find the line stylesheets[all][] = css/style.css and rename style.css to mytheme.css
8. Navigate to mytheme/css and rename the style.css file to mytheme.css
Now go ahead and change mytheme.css and the files in the templates folder to customise the look and feel.
As I said this works for me. Hope it helps
Comment #8
jensimmons CreditAttribution: jensimmons commentedReading this again, I see that is was about writing documentation! Yes, let's do that.
Comment #9
tim.plunkettI can work on some docs, but in the meantime I wanted to chime in on what is actually needed to make a theme recolorable.
The
css/colors.css
file and the entirecolor
directory are needed.The
THEMENAME.info
file must havebase theme = bartik
, but should not have thepackage
,version
, orengine
lines. The call tocss/colors.css
must stay in theTHEMENAME.info
file.Those are the only files that MUST be present. If
template.php
is copied over, all the function calls must be changed frombartik_
toTHEMENAME_
.Since there are almost daily changes to D7, I have a symlink to the
css/colors.css
file and thecolor
directory, but they could theoretically be copied over.So yeah, maybe I shouldn't be the one writing the docs. I made that sound really complicated.
Comment #10
Jeff Burnz CreditAttribution: Jeff Burnz commentedThe new D7 theme guide is kicking off, so the docs could go there: http://drupal.org/node/925532
Comment #11
jhodgdonIf this is to go into the Handbook, then it belongs in the Documentation project issue queue, not the Drupal Core issue queue.
Comment #12
arianek CreditAttribution: arianek commentedtags
Comment #13
arianek CreditAttribution: arianek commentedhey jen - i was looking for bartik docs so i could alias the landing page for them to http://drupal.org/documentation/themes/bartik if there are any (or in the future they're created, let me know so i can do that!) thx!
Comment #14
Carolyn CreditAttribution: Carolyn commentedI added basic instructions for sub-theming Bartik under the Bartik theme page. I also made a page about floating images to the right or left, since that is a common feature users ask for.
http://drupal.org/node/1114190
http://drupal.org/node/1114278
These are aimed at users who don't necessarily want to become theming experts, but want to adjust their default theme a little bit.
Comment #15
rogical CreditAttribution: rogical commentedI also encountered this problem by solving it with clearing cache :)problem not solved
Comment #16
Torenware CreditAttribution: Torenware commentedClearing the cache did not do a damn thing for me.
I've done the following at this point:
1. I've followed the instructions at http://drupal.org/node/1114190. The subtheme puts up the color admin UI, and it remembers the colors I set in the custom color set.
2. I've cleared the cache (drush cc all) repeatedly.
3. I've added the template.php functions for hook_process_html and hook_process_page as suggested in a related issue.
I think this is actually a bug in the color module. I enclose a patch that resolves this issue for me. This has been logged against the Color Module as #1145374: Subthemes overriding color module supporting modules do not respect color settings.
Comment #17
rogical CreditAttribution: rogical commentedpatche was applied, but problem still exists.solved. the region setting should be included in the sub .info file.
Comment #18
arianek CreditAttribution: arianek commentedtags
Comment #19
musicnode CreditAttribution: musicnode commentedHi,
I followed the instructions at http://drupal.org/node/1114190 and sub-theming with color module support seems to work fine with Drupal 7.8 on a localhost environment. Thus, I am closing this issue.