Closed (fixed)
Project:
Collapse Text
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
29 Nov 2009 at 02:30 UTC
Updated:
11 Jan 2011 at 13:19 UTC
First, I love the mod... thanks for making it.
Here's what I'd like to do: When using multiple collapse fields on a page (for example; "Season 1", "Season 2", "Season 3"), how would I have the other fields collapse when a user opens a new one.
for example: A user clicks "Season 1". The field expands. Then he clicks "Season 2". What I want is, when he clicks "Season 2", I'd like the field that's open (Season 1) to close automatically. In other words, only one field will be open at once. As he clicks other fields, the previous one's will close automatically.
What changes, if possible, would I need to make to accomplish this?
Thanks!
Chris
Comments
Comment #1
pooneil commentedHi Chris,
There is a new version, 6.x-2.0-beta1, available for testing. It allows you to override the theme function as well as use a style attribute in the collapse tag to get a custom class attached to the block when it is rendered (see the readme). You could use your own javascript file to attach handlers to your collapse links that trigger when a section is toggled. Using the custom class you can control which fieldsets (using a jquery selector) will be collapsed to avoid collapsing other fieldsets on the page that are part of something else.
Regards,
Anthony
Comment #2
pooneil commented