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 there,
I have a script generated by an external website that I have added to a Drupal block in my website. I would like this block to be collapsible as to have the whole form open is ugly and too large on the page in question.
My script looks like this (I've changed the particulars):
I have added a title field and filled in all other necessary fields.
Is it possible that the collapse isn't working because of the kind of content that is in the block?
Thank you in advance for any helpful insight.
Martha
Comments
Comment #1
lilbebel CreditAttribution: lilbebel commentedHelloooo,
Any kind person have any wisdom or insight into my quandary?
Comment #2
lilbebel CreditAttribution: lilbebel commentedI imagine then that imported external open source scripts behave unpredictably in Drupal and that this is my issue?
Comment #3
sonvir249 CreditAttribution: sonvir249 as a volunteer and at QED42 commentedHi @lilbebel,
I your script contains active class in anchor tag, then blocks will be expanded by default.
This code is addded in collapsiblock.js file.
To tackle this issue you can apply this patch.
Blocks are expanded with active menu link
Thank you.
Comment #4
darvanen