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.
Comment | File | Size | Author |
---|---|---|---|
#12 | shs-add_support_for_chosen-2712123-9.patch | 27.63 KB | stBorchert |
Comments
Comment #2
jhedstromThis is the issue that added support in 7.x #2084019: Support Drupal Chosen 7.x-2.0-alpha3 using Chosen v1.0 . Seems the code added to
shs.js
in that issue just didn't get ported at all to 8.x.Comment #3
stBorchertDue to the major rewrite for D8 (using backbone models and views) Chosen can be integrated in a much cleaner way as it had been in D7.
We already used this on a client site and simply have to cleanup the code and generalize some things so it can be added to SHS "core". :)
Comment #4
jhedstromI've got some time to work on this.
Comment #5
stBorchertUhm, no need for this. The integration is almost complete.
Thanks anyway ...
Sorry, I should have said this before :/
Comment #6
jhedstrom@stBorchert no worries. Let me know if there's anything I can do to help.
Comment #7
stBorchertOk, here it is.
@jhedstrom: I would be really glad if you can test the integration and have a look on thing I eventually could have done better :)
PS: you need to enable shs first and afterwards shs_chosen to make everything work. Simply installing shs_chosen does not work because of #2679008: Module weight is not taken into account after module installation.
Comment #10
stBorchertAh, testbot is right ... running tests strongly requires having some :/
Comment #11
jhedstromI tested this manually and it seems to work. I'm going to do some additional testing around site installs that use this new sub module.
I'm getting this warning due to the
!
placeholder:User error: Invalid placeholder (!global_settings) in string: Use !global_settings in Drupal\Component\Render\FormattableMarkup::placeholderFormat() (line 233 of core/lib/Drupal/Component/Render/FormattableMarkup.php).
Looking at
system_requirements()
I think links can be added by using:url
placeholders.Comment #12
stBorchertUrgh, indeed. Don't know, why I used this here.
Comment #14
stBorchertCommitted the current integration into 8.x-1.x.
Please note that #2679008: Module weight is not taken into account after module installation is still valid so you have to enable shs first and shs_chosen afterwards.