3

To solve a problem in an FOSS extension I need to introduce a configuration settings with the scope "theme".

Is there a standard way do to such?

I was thinking about extended in the theme.xml but this is locked down by the style sheet.

Another option I see to add an array config in the backened, where I can specific theme and config.

But I am wondering if there is a standard way to do such.

1

1 Answer 1

2

I see two options:

  • use the etc/view.xml <vars> tag inside the theme
  • create a new configuration file type etc/disable_requirejs.xml inside the theme

Other option

Use excluded files for this - and exclude them from require JS config

What does the "exclude" Tag in Magento 2's view.xml file do

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.