This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

I'm trying to create the simplest module to add some js and doesn't work

The libraries do not load

Directory: custom_simplelightbox

    custom_simplelightbox.libraries.yml

custom_simplelightbox:
  version: 1.x
  css:
    theme:
      css/simple-lightbox.min.css: {}
  js:
    js/simple-lightbox.jquery.min.js: {}
    js/settings.js: {}
  dependencies:
    - core/jquery

    custom_simplelightbox.module

    custom_simplelightbox.info.yml

Custom Module

In a custom module, in the build form, I have to insert some fields and I need to display others at the push of a button.
Do you know if it is possible?

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions