Attach JS and CSS library

Created on 1 February 2024, 5 months ago
Updated 4 February 2024, 5 months ago

Hello,
Sometimes we need to attach JS and CSS libraries in a block, can you add extra field in block configuration, that we can add separate library by ,
Thanks

✨ Feature request
Status

Closed: won't fix

Version

2.0

Component

User interface

Created by

πŸ‡«πŸ‡·France lazzyvn paris

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @lazzyvn
  • Status changed to Closed: won't fix 5 months ago
  • πŸ‡ΊπŸ‡ΈUnited States Chris Burge

    That's an interesting use case; however, it falls outside the scope of this module. If you wanted to implement with custom code, you should be able to accomplish that using hook_form_alter() and hook_preprocess_block().

  • πŸ‡«πŸ‡·France lazzyvn paris

    It's so simple, if I create a patch, could you add it to the module? I think that's the case. Avoid using too much hook.

  • πŸ‡ΊπŸ‡ΈUnited States Chris Burge

    @lazzyvn You're welcome to post a patch; however, as I mentioned, this falls outside the scope of this module, so it won't be committed.

  • πŸ‡«πŸ‡·France lazzyvn paris

    In this case I think I will create a new module with some functions that the block layout builder needs: add attribute, class , attach library, ...

Production build 0.69.0 2024