I would like to be able to open all or close all in views accordion drupal 7

Comments

humansky’s picture

I agree, this would be a great feature

boabjohn’s picture

So in D6 the link looks like this:

<a class="open-all-accordion" href="#">Open All</a>
|
<a class="close-all-accordion" href="#">Close All</a>

Can anyone see what's involved in connecting that class to a show/hide toggle in the script?

Seems odd that this very useful option simply disappeared...is there a more elegant approach suggested in D7?

boabjohn’s picture

Hmmm, this seems to be already answered:
http://drupal.org/node/1165402

But weren't we using jquery before in D6 version? What has changed?

boabjohn’s picture

Status: Active » Closed (works as designed)

More research...
What's changed is the incorporation fo jquery UI to Drupal Core. This module leverages that library, so we're "limited" to what is available or what gets custom developed.
Maintainer discusses here: http://drupal.org/node/1165402

So basically the only option here is to commission a developer to extend the accordion widget's functionality (see: http://api.jqueryui.com/accordion/)

Suggest this item is closed /works as designed.