Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm using D7 and installed the rubik theme. When setting the content schedule, i can't view the options and it seems to be missing. Its clearly there with firebug, just hidden with css display property.
After switching back to the seven theme i can see the settings. I suspect it has something to do with the collapse jquery function.
Is there something that needs to be done to see it with the rubik theme?
Comment | File | Size | Author |
---|---|---|---|
#24 | scheduler-vertical-tabs-1172040-24.patch | 2.83 KB | jarune |
#23 | scheduler-vertical-tabs-1172040-23.patch | 2.83 KB | wbobeirne |
#21 | 7.x-scheduler-vertical-tabs.patch | 3.39 KB | kiseleva.t |
#19 | scheduler.css_.txt | 1.94 KB | jonathan1055 |
#19 | scheduler_vertical_tabs.js_.txt | 531 bytes | jonathan1055 |
Comments
Comment #1
Eric-Alexander Schaefer CreditAttribution: Eric-Alexander Schaefer commentedThe same thing happend with the seven theme. We are currently waiting for http://drupal.org/node/1015798 to be resolved and backported to D7.
Comment #2
jonathan1055 CreditAttribution: jonathan1055 commentedHi Verve8media,
We could not wait for #1015798: Fieldsets inside vertical tabs have no title and can't be collapsed so we added our own css file to fix this temporarily in #1035398: Vertical tabs in node type form are wrong. As you have rubik theme installed, would you like to try modifying the scheduler.css file to make it work for you? Then there might be a more general solution we could incorporate.
Jonathan
Comment #3
Anonymous (not verified) CreditAttribution: Anonymous commentedI'm also having this issue with Rubik... It appears that CSS is hiding legends inside field sets. For most forms this isn't a problem because the form API applies labels to form elements. However, radio buttons and checkboxes are given legends. See http://drupal.org/node/558928
Comment #4
Anonymous (not verified) CreditAttribution: Anonymous commentedThis can be fixed if you switch your form to use the checkboxes element instead of a series of single checkbox elements. Individual checkbox elements render their titles as legends (which are then hidden by the current CSS). However, a checkboxes element will display a title as a label. If you switch to using checkboxes in scheduler_form_node_type_form_alter(), then that form will show up in the vertical tabs of the Rubik theme.
Comment #5
Anonymous (not verified) CreditAttribution: Anonymous commentedWell... I see that would be a challenge since you are leveraging the fact that the form sets variables by element id.
Comment #6
Anonymous (not verified) CreditAttribution: Anonymous commentedOk, my assessment in #4 isn't exactly accurate. The problem is the field set has a legend, which is hidden, and because the checkboxes aren't wrapped in a element that displays a title, the collapsed group is hidden beneath an invisible title. With CSS it's possible to display the hidden legends, but it looks a bit ugly.
Comment #7
Anonymous (not verified) CreditAttribution: Anonymous commentedAccording to the issue linked above (#1015798: Fieldsets inside vertical tabs have no title and can't be collapsed) it's bad practice to collapse the fieldsets within vertical tabs. Is there a reason the publish and unpublish fieldsets are collapsed by default?
Comment #8
Anonymous (not verified) CreditAttribution: Anonymous commentedNeither the core patch in #1015798 or the scheduler 1.x-dev (the commited patch in #1035398) resolve the issue in Rubik. Apparently the CSS isn't specific enough. I've attached a patch that fixes the CSS for Rubik as well as seven.
Comment #9
alduya CreditAttribution: alduya commentedThe patch in #8 solves the problem for me with Rubik and Seven.
Comment #10
jonathan1055 CreditAttribution: jonathan1055 commentedYes, I've not used Rubik before but just checked and adding vertical-tabs-pane(s) qualifiers does improve things so that now you can actually see the fieldset legend. But with Rubik I think there is some more work to be done, because when the fieldset is opened the legend overlaps the conent. See screen shot attached.
If it worked fine for you, then maybe you have modified your own rubik css and set some margin/padding so that it works. My test was on Firefox 3.6 on mac, so it could be a browser thing. Could you post a screen shot too?
Jonathan
Comment #11
alduya CreditAttribution: alduya commentedThere is indeed stil a problem in Firefox. Chrome and Safari display the fields correct. (also on mac)
Comment #12
zilverdistel CreditAttribution: zilverdistel commentedSubscribing, the patch in #8 seems to work.
Comment #13
jonathan1055 CreditAttribution: jonathan1055 commentedHere is an updated patch which fixes the Rubik theme on Firefox. I had to use a slightly new tactic because this particular theme could not be fixed with general css which did not mess up other themes. So what the code now does is add the theme name as an extra class to the top-level div. This gives the ability to fix certain themes without affecting other themes, by starting the css with
div.vertical-tabs.rubik
for example. I;m particularly pleased with this (he said modestly) as I used a couple of lines of jquery to add the required class. ieSo now, we can fix each default theme correctly, independently, and also add any fixes to other theme problems as they are reported.
Jonathan
Comment #14
jonathan1055 CreditAttribution: jonathan1055 commentedI'd forgotten to include the jquery in the patch.
Comment #15
jonathan1055 CreditAttribution: jonathan1055 commentedAdded more detail to title, to assist those searching for this fix.
The latest code works correctly in Firefox, Safari and Opera (all on Mac).
Comment #16
Jackinloadup CreditAttribution: Jackinloadup commented#14 resolved the issue for me (chrome dev mac)
Comment #17
dtarc CreditAttribution: dtarc commentedI think this issue is actually a Tao issue. Tao is Rubik's base theme and the theming bug really should be fixed there: #1212314: Fieldgroup legend tags within vertical tabs panes are hidden.
This is actually an issue in core: #1015798: Fieldsets inside vertical tabs have no title and can't be collapsed
Comment #18
jonathan1055 CreditAttribution: jonathan1055 commentedThanks. Yes we know, issue 1015798 has already been linked
twicethree times before in this thread ;-)All of these css issues can be fixed in the base theme or in core, but we could not wait for those to be implemented so I devised a way that scheduler users could continue to use our D7 version in the meantime.
Thanks for you input.
Jonathan
Comment #19
jonathan1055 CreditAttribution: jonathan1055 commentedFor anyone wishing to use this in their modules, here are the two files which make up the solution. This is easier for you than trying to pick out the changes from the patches above. The css file can be extended to solve the problem for other themes not covered yet, and because it uses the theme name in the selector you can be confident that you won't mess up another theme by accident.
You will also nee to add something like this in the .module file:
This was just how I did it, I'm sure there are other ways to add the jquery file, if the above is not suitable.
Jonathan
Comment #20
jonathan1055 CreditAttribution: jonathan1055 commentedCore issue #1015798: Fieldsets inside vertical tabs have no title and can't be collapsed has just been committed to D7 dev. May need to check that it does not conflict with our solution.
Comment #21
kiseleva.t CreditAttribution: kiseleva.t commentedIn drupal 7.14 the error is not fixed. I've attached patch, which you can apply not only from module directory.
Comment #22
jonathan1055 CreditAttribution: jonathan1055 commentedHi,
The actual contents of the patch you have given in #21 seem to be indentical to mine in #14. The only difference is the way it's been generated - see image. Is that what you meant?
Jonathan
Comment #23
wbobeirne CreditAttribution: wbobeirne commented#21, patches need to target the module within the folder. Assumptions cannot be made about someone's folder structure (i.e. the scheduler module could be in someones profile/my_profile/modules/scheduler folder, etc.)
Also, the Rubik specific rules looked kind of wonky, so I've just removed them. Attached is said patch.
Before: http://cl.ly/image/2y0G0h0j3A0u
After: http://cl.ly/image/3s0T1J3X383j
I'm upping this issue to 'major', as it renders this module unusable for many themes.
#20, 7.15 fixes this issue, but the patch does not seem to conflict with it in any way, so I think it should still be committed for those who're still on older versions.
EDIT: Scratch that, it's functional but still lacks the fieldset titles: http://cl.ly/image/1U0e0u3T1100
Comment #24
jarune CreditAttribution: jarune commentedRemoved whitespaces.
Patch seems to work.
Comment #25
Tezza CreditAttribution: Tezza commentedI applied the patch in #23 and it works beautifully for:
Drupal 7.17
scheduler-7.x-1.0
Tao 7.x-3.0-beta4
Rubik 7.x-4.0-beta8
Thanks to all.
Comment #26
jonathan1055 CreditAttribution: jonathan1055 commentedD7 core has been improved, so this is no longer 'critical' but this patch is still required for Tao and Rubik themes.
The patch in #24 is fine, so I have marked it RTBC.
Comment #27
rickmanelius CreditAttribution: rickmanelius commentedThanks everyone for your patience and diligence. This is committed.
http://drupalcode.org/project/scheduler.git/commit/2f7ec59
We may have to roll this back in the future if further enhancements to D7 fix this in core. However, we will address this here for now.
Comment #28
jonathan1055 CreditAttribution: jonathan1055 commentedI've checked this and it works as expected. Thanks Rick.
Comment #30
pfrenssenThis might not be needed in Drupal 8 any more. I created a followup to investigate this: #2468819: Remove theming workarounds and delete scheduler.css.
Comment #31
pfrenssen