Closed (fixed)
Project:
Fieldset helper
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
2 Sep 2009 at 12:06 UTC
Updated:
3 Jan 2011 at 14:20 UTC
The Admin module (http://drupal.org/project/admin) modifies the fieldsets blocks on the admin/modules page to use divs and h2s instead of fieldsets and legends which breaks the 'Expand all | Collapse all' links which are looking for collapsible fieldsets and not divs.
Comments
Comment #1
robinhodrup commentedHi there,
I'm not sure if this is me getting the wrong idea as I'm currently testing Drupal for the organisation I work for. Anyhow, I have a number of fieldsets to collapse in blocks which allow users to collapse/view different peices of content from the front page. I was going to put together something myself which saved the state of these to a cookie, but then I stumbled across this plugin. I've installed it but it doesn't save the collapse state of the blocks. Do I indeed have the wrong idea, or should this in fact be working in this way.
Regards,
R.
Comment #2
jrockowitz commentedAs long as you are using Drupal's collapsible fieldset you can just add the required javascript. #628322: Manually creating a fieldset?
Something I have realized while using my own module is the 'state manager' should probably be isolated into a new API so that it can be used to save the state for any client/server-side element in Drupal.
If you are still having problems. Feel free to post the code snippet for your blocks.
Comment #3
robinhodrup commentedjust sorted it thanks!
Comment #4
jrockowitz commentedRight now, this issue is extremely difficult to fix due to how the admin.module, more specifically the rubik.theme, overrides the fieldset theme function. For now an "in-compatibility" warning has been added to 6.x-2.x-dev branch.
Comment #5
jrockowitz commentedStrike that...
Support for the Rubik theme (http://drupal.org/project/rubik) and Tao theme (http://drupal.org/project/tao) has been addressed in the 6.x-2.x-dev branch.
Comment #6
mrP commentedJust tried with fieldset_helper-6.x-2.x-dev and rubik-3.0-beta2 + tao-6.x-3.2 and couldn't get expand all to work. Did you have to do anything else to make this work?
UPDATE: upon further inspection, its definitely an issue with rubik specifically. with tao set as administration theme, expand all function works as expected.
Comment #7
mrP commentedTested on a fresh drupal install and rubik + fiieldset_helper expand all functions works.
Previous post was regarding a sandbox install with a lot of rubbish...
Comment #8
jrockowitz commentedBoy... this is tricky one, because I went in a reviewed the current code and saw a very minor bug that was breaking the collapse all in rubik on just the modules page.
For now I will leave this issue closed but if anyone has the same problem please feel free to re-open it.