I believe since most of the custom .js from Drupal 6.x Accordion has been removed, we are missing the ability to open multiple rows at once. i.e. I can only view one row at a time, which causes the page content to jump all over the place when you have long entries under each heading.

see issue: http://drupal.org/node/454370 as it was resolved for Drupal 6.

Anyone know where the code/files are in ver 6.x-1.5 that allows for this multi-row option in the styling when selecting view options?

ALSO --- Drupal 7.x-1.0-rc1 claims to allow you to theme the accordion based on basic .css & tpl.php files -- BUT the option to remove Accordion styling does NOT show up in the views style options --- neither does selecting a time in milliseconds for the content to reveal itself ---- is it safe to assume these features are on the way, or is this news?

I couldn't find anything like this in the issues/patches/commit pages -- waiting patiently b/c i know you are all amazingly busy!

Comments

manuel garcia’s picture

Category: task » support
Status: Needs work » Fixed

A valid question, let me explain the situation:

The 7.x branch of views accordion integrates jQuery UI accordion, which is in Drupal core.

This means that only features supported by this plugin will be supported. See its documentation:
http://jqueryui.com/demos/accordion/

The plugin can be extended by other developers if need be, which is awesome, but that's outside of the scope of this module.

To avoid content moving around, make sure to have auto height selected in your options, again, see the documentation of the plugin above.

As far as removing the CSS it's not an option, although there are efforts on trying to get jquery ui to use themes from themeroller, so who knows, perhaps in the future we'll integrate with that. See #388384: Allow usage of jQuery UI themes from the themeroller

shiftymic’s picture

Thanks for the response ---- makes better sense now, but does this mean individuals have to implement changes on our own to make multiple-row opening possible?

Also, will autoheight still work if content under each heading are different lengths (i.e. I set it at 400px but the page goes longer, what happens)?

Finally, is there any easy way to just have the page readjust / center on the new header when it pops open, assuming I cannot change the one-accordion-at-a-time view?

manuel garcia’s picture

I dont believe that jquery ui accordion supports multiple rows opened. An accordion is a specific UI concept that well, it's based on opening one row at the time...

Autoheight does exactly that, make every row's height equal to the heighest of rows.

For your last question, you could probably do it writing some js that triggers when an accordion item is opened. See documentation on the plugin on how to do that.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

deweydb’s picture

Did you ever find a solution for multiple rows at once? I would like this functionality as well.

ditcheva’s picture

Is there an alternate module anyone has found that allows for 'collapsible fieldsets' in views in which you can have more than one row open at a time?

Any suggestions would be appreciated! I've found fieldsets I can use in content types, but not in views yet, and though I love this module, my requirements are that I have to be able to view more than one row at a time for comparison...

ditcheva’s picture

Hey all... try the views_fieldsets module if you still need this functionality (just out): http://drupal.org/project/views_fieldsets