I love this module, it's great. There's just one minor issue I found so far:
Is it possible to have the "collapsed" sub-nodes remember their state on a page refresh?
The reason I need this is the following. For education I often want to have a closed question in a library page, so students can practice the material they are reading about. It's nice to have this question collapsed at first, so the question isn't to obtrusive when a student just wants to read the text. A student can then expand the question, to answer it. But after hitting submit on the question, the node is collapsed again, so the student can't see the feedback on his answer until he scrolls to the question and expands it again. That's not really nice...
Comments
Comment #1
AlexisWilke commentedEverything is possible! 8-)
But that would require quite some work...
What you'd need is save the state using some AJAX code, then whenever you regenerate the page, check the current state. The state needs to be unique, so you'd need to use the current node, the node being inserted and a counter to know which entry is being considered (because it could be that you include the same node twice!)
I'd be glad to develop that for a payment, but otherwise I think it is too specialized a feature to make it work. So feel free to contact me if you want to move forward.
Thank you.
Alexis Wilke
Comment #2
HylkeVDS commentedOk, If I have time (or money ;)) I'll work on it. At least it's on the list here.
Comment #3
cosmicdreams commentedAs the result of the work done in a similar issue: http://drupal.org/node/114130 , this feature request has been handled by a contributed module: http://drupal.org/project/fieldset_helper
I think it is likely that the core developers will view this request as an edge case rather that an important-enough-to-add-to-core feature. So I think it's best if we mark this issue and the related issues listed below as fixed.
#65578: Remember state of collapsible fieldsets
#147926: remember mysite block state - collapsed / expanded
#176168: remember collapsed module sections
#181842: admin/modules fieldsets should remember collapsed state
Comment #4
AlexisWilke commentedIt looks, indeed, like the fieldset_helper module will do what this request was about. If not, they probably need to fix their module until it works right.
Thank you for pointing that out.
Alexis Wilke