Comments

jonathan1055’s picture

StatusFileSize
new119.79 KB

Yes, I was about to post the same. There are three vertical tabs in the node-type admin edit form. The first two are 'publishing settings' and 'unpublishing settings' which have the correct content. The last one is 'scheduler' which is empty. Attached is a screen shot for the record.

eric-alexander schaefer’s picture

StatusFileSize
new25.63 KB

And this is what this looks like in D6...

sillygwailo’s picture

Status: Active » Needs work
StatusFileSize
new3.67 KB

Attaching a patch which at least gets the form items underneath "Scheduler settings". Marking as "needs work" since I think we'd rather have fieldsets, or at least separate out the publishing and unpublishing settings with headings.

eric-alexander schaefer’s picture

I don't know. but #1015798: Fieldsets inside vertical tabs have no title and can't be collapsed and the screenshots posted there suggest that it is possible to have fieldsets inside vertical tabs with D7.

sillygwailo’s picture

Status: Needs work » Needs review
StatusFileSize
new14.18 KB
new705 bytes

With the patch to core that Eric just pointed out, try the attached patch to Scheduler 7.x dev (ignoring my patch above). It results in the screenshot also attached.

sillygwailo’s picture

Without the patch to core, the Publishing Settings and Unpublishing Settings fieldsets will need to be uncollasped ('#collapsed' => FALSE), otherwise they won't show up. Even in that case, without the core patch, the titles of the fieldsets won't show up.

eric-alexander schaefer’s picture

StatusFileSize
new3.87 KB

Looks like we worked on it at the same time. I just found out myself.
It is basically a css problem. They designed it that way. I don't know what to do about it. O well, maybe we have to accept it for now and see if #1015798: Fieldsets inside vertical tabs have no title and can't be collapsed finds its way into 7.1

I added some code formatting changes and some cleanup. See attached patch. If there are no objections against this patch I will commit it.

We will need to come back to this problem later, because the options are not enough separated and do not tell strikingly enough if they belong to publishing or unpublishing.

jonathan1055’s picture

I would suggest that we have the best of both your ideas. We want to make it easy to revisit and fix this when #1015798: Fieldsets inside vertical tabs have no title and can't be collapsed is committed, but also we do not want to reduce the functionality of scheduler's nice fieldsets by forcing them open. We can do this by adding our own scheduer.css file which just contains the additions in that patch and we can simply remove them when they are in D7 core. We can write our form exactly how it should be done. We then retain the ability to set the collapsed true/false for our fieldsets etc.

The attached screen grabs show this fix for Bartik and Seven. The only slight trade-off is that the Seven css should not really be added to all themes, it makes a small bit of white space at the top of the fieldset in Bartik, but that is a small price to pay, and it will dissappear when we empty out the css when the D7 core is patched.

I have re-applied the formatting re-allignment that Eric did, but I almost didn't as it just confuses things and makes the patch look more complicated. But then I thought, Eric wanted it done in his patch, so I would not undo his work ;-)

jonathan1055’s picture

It works fine in Garland and Stark too.

eric-alexander schaefer’s picture

Status: Needs review » Fixed

Beautiful. I like it. This will be important if/when we implement more actions like promote/demote stick/unstick. If the settings for all those actions would be expanded, the list would be pretty long.
You are right about the whitespace/formatting belonging into a separate patch.

Commited.

jonathan1055’s picture

Do we need to add scheduler.css into the files 'array' in scheduler.info?

Also what about scheduler_handler_field_scheduler_countdown.inc and scheduler_vertical_tabs.js?
I've not read up on what should go into the new style of .info file.

Regarding those two files, would it not be better if they were scheduer. instead of scheduler_? Or this that specifically to make them different?

eric-alexander schaefer’s picture

Only files that need to be loaded by drupal go into the files array. Since scheduler.css is loaded by scheduler on demand we do not need to include it into files[].

scheduler_vertical_tabs.js is also loaded automatically if the name is MODULENAME_vertical_tabs.js

The field handler file is advertised to views via a hook and the file name is by convention.

jonathan1055’s picture

Thanks for the info. Excellent answers!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

fizk’s picture

Status: Closed (fixed) » Active

When was this committed?

I'm still running into this issue using 7.x.-1.0.

Please release 7x.-1.1 with this fix.

jonathan1055’s picture

Hi fizk
This original fix does appear in 7.x-1.0 - the css file is present, and that was new with this. What theme are you using? This solution only addressed the core 7.x themes bartik, seven, garland and stark. Other themes may have been fixed by it, but they were not tested.

However, a later more comprehensive patch is in #1172040: Contrib solution for non-collapsible fieldsets and missing titles which has not been committed yet. This caters for all of the above, plus Rubik, and has the capacity for correcting any other specific themes more easily.

Jonathan

jonathan1055’s picture

Priority: Critical » Normal
Status: Active » Postponed (maintainer needs more info)

Until we know what theme you are using we can't help with any fix.

alphex’s picture

StatusFileSize
new35.11 KB

This is broken in Rubik.

wbobeirne’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)

Hey Duran,

That issue is has been resolved over here, just waiting for RTBC and commit: http://drupal.org/node/1172040#comment-6604870