Problem/Motivation

Recently in one of the latest releases a extra schema file was added. In creating a sub-theme by copying and renaming the solo_subtheme folder, should this schema file also be renamed and the contents adapted?

Steps to reproduce

Proposed resolution

In this documentation file there should be maybe an extra step to adapt this schema file.

Remaining tasks

User interface changes

API changes

Data model changes

Comments

ericvl created an issue. See original summary.

flashwebcenter’s picture

Hello,

Yes, it’s recommended, but if you don’t do it, your sub-theme will still work.

To update it:
Copy config/schema/solo_subtheme.schema.yml to your sub-theme’s config/schema/subtheme/ directory and rename the file to:

your_new_subtheme_machine_name.schema.yml
Inside the file, change:

solo_subtheme.settings:
  type: mapping
  label: 'Solo sub-theme settings'
  mapping:

to:

your_new_subtheme_machine_name.settings:
  type: mapping
  label: 'Solo sub-theme settings'
  mapping:

Best wishes,
Alaa

ericvl’s picture

You're great, Alaa.
Thank you for the quick response.
If you find the time, could you adapt the file I mentioned in the "Proposed resolution". It will be clear then for everybody.
Here is the link again.

flashwebcenter’s picture

ericvl’s picture

Great, thank you again.

ericvl’s picture

Sorry to say so, Alaa. But I think there is still an error in the documentation.

Below of the added text for the schema file there is a next step.

Step 8: Update the theme file:

Search for:
"Replace it with $suggestion = str_replace('your_old_theme_machine_name_', 'fun_', $suggestion);"

and replace by
"Replace it with $suggestion = str_replace('solo_', 'fun_', $suggestion);"
Sorry to bother again.
Thank you

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.