It would be nice to have the results that views spits out in a list be collapsible.

Views blocks do not spit out an ID attribute by default on their blocks, and the content within the block has a class of "view-content", not "content", which is what collapsiblock.js searches for.

I was able to have views spit out an ID attribute by overriding the template, but it still cannot collapse the view results.

Comments

xayberoptix’s picture

i second that!

surgeonbor’s picture

I third it!

arx-e’s picture

That would be sooo nice!!!
I've been trying to figure whether something like that is possible through CSS or something...
I want a big list of projects chronologically sorted with title and country showing initially (something very easily done) but I want to let the viewer expand one of the items in the list. How can this be done???

arx-e’s picture

No sooner had the ink of my post here dried than I found the solution!
Just check this awesome module: Views Accordion (http://drupal.org/project/views_accordion)

And if you want to use multiple fields in the collapsed form pay attention to the "Using several fields a the accordion header" section here: http://drupal.org/node/366263

gagarine’s picture

Assigned: Unassigned » gagarine
gagarine’s picture

Status: Active » Postponed (maintainer needs more info)

Witch version you use of views. I try and every things work for me.

gagarine’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)
gurtner’s picture

Issue summary: View changes

If you're using Drupal 7 and you've stumbled upon this post via googling for a solution like me, check out the solution I posted at https://www.drupal.org/node/101465#comment-9141349

hope it's what you're looking for ;-)