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.
Hello, I'm trying this module, but on my installation works only the "Simple HTML Select" option, If I try to enable MARGHOOB or CHOSEN the site stops loading javascript and css .
I've installed the libraries in:
- siteroot/libraries/ms-dropdown
- siteroot/libraries/chosen
I've also installed the libraries module for drupal 8.
Comment | File | Size | Author |
---|---|---|---|
#12 | lang_dropdown-wrong-library-place-2840291-12.patch | 22.75 KB | myLies |
#9 | lang_dropdown-wrong-library-place-2840291-9.patch | 22.54 KB | myLies |
Comments
Comment #2
SkinComment #3
Znak CreditAttribution: Znak commentedYou need the library in folder /sites/all/libraries/library_name
Comment #4
SkinI've tried to put ms-Dropdown in /sites/all/libraries/ms-Dropdown but the result is the same, when I load the site it is an html page without css and javascript, a simple white page with text and links; if I disable the block everything start to work again.
Thanks for the reply.
Comment #5
SkinP.S. in the error log I have no entries
But there is something in the apace error log:
Comment #6
shaisamuel CreditAttribution: shaisamuel commentedInstalled the ms-Dropdown in /sites/all/libraries/ms-Dropdown, and set the output type to: "Marghood Duleman Dropdown jquery library"
I got error in my error_log:
Using version 8.x-2.x-dev (2016-Dec-25), and D8 8.2.5
Comment #7
shaisamuel CreditAttribution: shaisamuel commentedI think I found the issue why nothing except Simple HTML is displayed.
It has to do with the drupal_add_css() calls in LanguageDropdownForm.php (4 calls). D8 doesn't use drupal_add_css anymore. It is all explained in:
https://www.drupal.org/docs/8/creating-custom-modules/adding-stylesheets-css-and-javascript-js-to-a-drupal-8-module
Unfortunately I don't have enough Drupal understanding to be able to fix it.
Comment #8
myLies CreditAttribution: myLies as a volunteer commentedComment #9
myLies CreditAttribution: myLies as a volunteer commentedwell, it was hard but I done it
fixed wrong library path(currently it should placed in drupal_root/libraries/ - sites/all/libraries it's more for drupal 7)
replaced deprecated functions drupal_add_js\drupal_add_css
for now it should work with other output type and display formats
Comment #10
myLies CreditAttribution: myLies as a volunteer commentedComment #11
SkinI've applied the patch and now it works, thanks.
There is still some work to do, for example if the library is not present there is no error message and the site load the default simple html library.
@myLies I received the notification regarding your personal message, but apparently I dont have the permission to use the contact form on this site, if I try to use the contact form I have a 403 access denied
Comment #12
myLies CreditAttribution: myLies as a volunteer commentedchanged validation for exist libraries
@Skin - my fault, I fixed my profile configs, so if you wanna discuss something - you are welcome)
Comment #13
kala4ekComment #15
kala4ekThanks all for working on this issue.
Committed to dev version.
Let's other issues create as new one.