Hi Folks, I am still trying to understand sub-themeing. I have four themes installed and two enabled. Bartik(enabled), Seven(enabled), Garland, Stark. I tried a minimal, trivial sub-theme of Bartik by creating a subdirectory /sites/all/themes/bartik-cjm populated as follows: bartik-cjm/ bartik-cjm.info css/ local.css bartik-cjm.info: name = Bartik-cjm base theme = Bartik core = 7.x stylesheets[all][] = css/local.css According to everything I've read, and it has been a increasing amount, this should be sufficient to create a sub-theme named "Bartik-cjm" which inherits everything from Bartik and overrides local.css with my copy. I believe I should see this as one of the options in admin/appearance, and I don't. I can see that $data[system_list][theme] is populated from the MySQL database (select * from cache_bootstrap where cid = "system_list";), which only has my original four themes in the serialized object. So, either the database must be updated somewhere, somehow, by someone, -- OR -- Drupal must look at the filesystem and realize that there is more to the story than the database knows and extend the list. So, how does Drupal become aware of the custom sub-theme? -- Chris.
Hi Chris, One issue is that the "base theme" line should use the system name of the theme, which is "bartik" (i.e. lowercase) rather than the "human" name - see the example on https://drupal.org/node/225125. A new theme should show up in the theme listing page right away. If you change the info file after selecting the theme though, you will need to clear the cache (e.g. via the button on the performance page, or with drush cc) for the changed lines to be recognized. Thanks! - Owen On Thu, Oct 10, 2013 at 9:49 AM, Chris Miller <cjm@tryx.org> wrote:
Hi Folks,
I am still trying to understand sub-themeing. I have four themes installed and two enabled. Bartik(enabled), Seven(enabled), Garland, Stark. I tried a minimal, trivial sub-theme of Bartik by creating a subdirectory /sites/all/themes/bartik-cjm populated as follows:
bartik-cjm/ bartik-cjm.info css/ local.css
*bartik-cjm.info:*
name = Bartik-cjm base theme = Bartik
core = 7.x
stylesheets[all][] = css/local.css
According to everything I've read, and it has been a increasing amount, this should be sufficient to create a sub-theme named "Bartik-cjm" which inherits everything from Bartik and overrides local.css with my copy. I believe I should see this as one of the options in admin/appearance, and I don't. I can see that $data[system_list][theme] is populated from the MySQL database (select * from cache_bootstrap where cid = "system_list";), which only has my original four themes in the serialized object.
So, either the database must be updated somewhere, somehow, by someone, -- OR -- Drupal must look at the filesystem and realize that there is more to the story than the database knows and extend the list. So, how does Drupal become aware of the custom sub-theme? -- Chris.
From: "Owen Barton" <drupal@owenbarton.com> To: development@drupal.org Sent: Thursday, October 10, 2013 10:39:41 AM Subject: Re: [development] Theme system
Hi Chris,
One issue is that the "base theme" line should use the system name of the theme, which is "bartik" (i.e. lowercase) rather than the "human" name - see the example on https://drupal.org/node/225125 . A new theme should show up in the theme listing page right away. If you change the info file after selecting the theme though, you will need to clear the cache (e.g. via the button on the performance page, or with drush cc) for the changed lines to be recognized.
Hi Owen, Yes. You're right and if the human name is confused with the machine name there is a screen full of complains that <human name> index can't be found. So, that mistake is pretty easy to discover and repair. Thanks for your help, Chris.
I see that you don't have 1- Description, 2- Engine, 3- Screenshot These might help, Regards, On 10 October 2013 19:49, Chris Miller <cjm@tryx.org> wrote:
Hi Folks,
I am still trying to understand sub-themeing. I have four themes installed and two enabled. Bartik(enabled), Seven(enabled), Garland, Stark. I tried a minimal, trivial sub-theme of Bartik by creating a subdirectory /sites/all/themes/bartik-cjm populated as follows:
bartik-cjm/ bartik-cjm.info css/ local.css
*bartik-cjm.info:*
name = Bartik-cjm base theme = Bartik
core = 7.x
stylesheets[all][] = css/local.css
According to everything I've read, and it has been a increasing amount, this should be sufficient to create a sub-theme named "Bartik-cjm" which inherits everything from Bartik and overrides local.css with my copy. I believe I should see this as one of the options in admin/appearance, and I don't. I can see that $data[system_list][theme] is populated from the MySQL database (select * from cache_bootstrap where cid = "system_list";), which only has my original four themes in the serialized object.
So, either the database must be updated somewhere, somehow, by someone, -- OR -- Drupal must look at the filesystem and realize that there is more to the story than the database knows and extend the list. So, how does Drupal become aware of the custom sub-theme? -- Chris.
From: "Muzaffer Tolga Ozses" <tolga@ozses.net> To: development@drupal.org Sent: Thursday, October 10, 2013 10:40:37 AM Subject: Re: [development] Theme system
I see that you don't have 1- Description, 2- Engine, 3- Screenshot
These might help,
Hi Muzaffer, The only required fields are "Name", "Base Theme", and "Core". It also appears that at least one stylesheet must be overridden to inherit any of the others. Thanks for your help, Chris.
Hi Chris, Replacing the dash by an underscore in the theme name might help. See https://drupal.org/node/143020 Regards, Gaele On 10/10/2013 06:49 PM, Chris Miller wrote:
Hi Folks,
I am still trying to understand sub-themeing. I have four themes installed and two enabled. Bartik(enabled), Seven(enabled), Garland, Stark. I tried a minimal, trivial sub-theme of Bartik by creating a subdirectory /sites/all/themes/bartik-cjm populated as follows:
bartik-cjm/ bartik-cjm.info css/ local.css
_*bartik-cjm.info:*_
name = Bartik-cjm base theme = Bartik
core = 7.x
stylesheets[all][] = css/local.css
According to everything I've read, and it has been a increasing amount, this should be sufficient to create a sub-theme named "Bartik-cjm" which inherits everything from Bartik and overrides local.css with my copy. I believe I should see this as one of the options in admin/appearance, and I don't. I can see that $data[system_list][theme] is populated from the MySQL database (select * from cache_bootstrap where cid = "system_list";), which only has my original four themes in the serialized object.
So, either the database must be updated somewhere, somehow, by someone, -- OR -- Drupal must look at the filesystem and realize that there is more to the story than the database knows and extend the list. So, how does Drupal become aware of the custom sub-theme? -- Chris.
From: "Gaele Strootman" <eindgebruiker@gmail.com> To: development@drupal.org Sent: Thursday, October 10, 2013 10:43:30 AM Subject: Re: [development] Theme system
Hi Chris,
Replacing the dash by an underscore in the theme name might help. See https://drupal.org/node/143020
Hi Gaele, Yes, that turns out to be the correct answer as was explained to me by "Jørn Fauske" < jfauske@gmail.com > Thanks for your help, Chris.
participants (4)
-
Chris Miller -
Gaele Strootman -
Muzaffer Tolga Ozses -
Owen Barton