0

I try to develop a SXA custom module. This module should also have custom styles and/or scripts.

  • The scripts and styles should work site- independent.
  • The scripts and styles should only be available when the module is used within a site.

Which scaffolding actions are necessary for registering the scripts or styles.

enter image description here

The "Edit Editing Theme" extends only the experience editor style and I dont know what the "Edit Site Theme" does.

How should the necessary items are stored in the media library/feature folder? enter image description here

Thanks a lot Uwe

1 Answer 1

1

I think you're almost there. I would indeed store the CSS and JS files in a seperate theme that has nothing other then the files needed to run your module. Personally I would store the theme in the feature folder, just as you did in the screenshot

For the scaffolding part you can use the action "Edit Site Theme" to add your theme as a base theme to the current theme used on the site.

1
  • Hey Mark, it works! I think, I'll write a detailed answer. Thanks Commented Feb 21, 2020 at 8:15

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.