- Issue created by @thomas.wardin
- ๐ฎ๐ณIndia ravi kant Jaipur
@thomas.wardin
You can manually update theme setting in
config/instaall/xxx.settings.ymlof your theme before enable and make default. - ๐ฉ๐ชGermany thomas.wardin
Is this really the case?
The old instance's export looks like this:
settings[toggle_logo] = 1 settings[toggle_name] = 0 settings[toggle_slogan] = 1 ... settings[palette][silver] = "#f1f1f1" settings[palette][body] = "#efefef"Wouldn't it be necessary to transform into yml?
- ๐ง๐ฆBosnia and Herzegovina drale01 Sarajevo
In Drupal 7, theme settings were stored in the
.infofile using thesettings[...]format, for example:settings[toggle_logo] = 1 settings[toggle_name] = 0 settings[toggle_slogan] = 1 settings[palette][silver] = "#f1f1f1" settings[palette][body] = "#efefef"In Drupal 8+, these settings must be stored as configuration in YAML format, for example in:
config/install/dxpr_theme.settings.ymltoggle_logo: true toggle_name: false toggle_slogan: true palette: silver: '#f1f1f1' body: '#efefef'You can manually convert your old
.infosettings into this YAML format and then either:- place the file in your themeโs
config/install/directory before enabling the theme, or - import it via
drush cimif the theme is already enabled.
- place the file in your themeโs
- ๐ฉ๐ชGermany thomas.wardin
What do you recommend for automated conversion?
Or does "fixed" mean, the new importer now understands the old format?
- ๐ง๐ฆBosnia and Herzegovina drale01 Sarajevo
Hi @thomas.wardin,
There is no good automated conversion tool for the old Drupal 7 settings[...] format from .info files to the YAML configuration format used in Drupal 8+.
โFixedโ in this context does not mean that the importer now understands the old format โ it only means that the manual process has been documented.The recommended approach is still to manually convert the old .info settings into {theme_machine_name}.settings.yml as shown above, and then either place it in config/install/ before enabling the theme or import it with drush cim.