Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
While browsing the repository, I noticed a log of config-related code is commented. What's the reason behind this? It seems valuable to me to be able to easily configure Select2, especially since it's applied globally.
Remaining tasks
- Add more configuration options
- Create a configuration form
- Add the possibility to reset the configuration to defaults through the form, in case you mess up the selectors
Issue fork select2_all-3184189
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
DieterHolvoet CreditAttribution: DieterHolvoet at Wieni commentedI started a draft pull request.
Comment #4
trwill CreditAttribution: trwill commentedPatch is working great for me! I think we probably would want a page to set these vars besides just providing the ymls but this definitely solved my use case!
Comment #6
richardbporter CreditAttribution: richardbporter at Principal Financial Group commentedI had started working on this separately and then found this issue. Since it hadn't been updated in a while, I pushed some commits to keep it moving.
There are probably more UX improvements, validation and select2 doc references that could be made to the settings form. Test coverage would be good also.
Comment #7
richardbporter CreditAttribution: richardbporter at Principal Financial Group commentedIt might be good to get an initial review to confirm this is the right direction before going further.