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.
Can I make the block expand or collapsable on a page using formblock? Is there code that I could use? Any pointers?
Comments
Comment #1
choosewisely CreditAttribution: choosewisely commentedYou might want to take a look at .slideToggle() in the JQuery library.
http://api.jquery.com/slideToggle/#entry-examples
If you want your block to be collapsed on initial viewing use:
Don't forget to examine the markup of your theme to prevent all blocks from expanding/collapsing.
Comment #2
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedI am not familiar with js.
where would I place this?
Comment #3
MM10 CreditAttribution: MM10 commentedWhere would the js/html be entered?
"Show if the following PHP code returns TRUE (PHP-mode, experts only)"?
Apologies, I could use a little help here... but I do believe hiding the formblock in a field set would be a nice feature of the module.
Comment #4
mikey_p CreditAttribution: mikey_p commentedClosing out old 6.x issues.