How do I set the Meta Tag fieldset to be collapsed by default on form pages. They do take up quite a bit of space and I have set it to use teaser and taxonomy terms as default so it is very seldom I will need to manually edit them for an individual node.
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | nodewords-collpase_fieldsets.patch | 949 bytes | psynaptic |
Comments
Comment #1
James Yap commented1 vote from me!
It would be good if it follows drupal default behavior, which is to be collapsed with no value and to expand when there are value already entered.
Comment #2
rkdesantos commentedThis should also be the default behavior in the module for v5 of Drupal.
Comment #3
extect commented+1
Forms in Drupal can become very long. This is why I always try to keep everything collapsed. Unfortunately, the meta tags fieldset is expanded by default. It would be great, if this was changed.
Comment #4
clarkburbidge commented+1 For collapsed by default option.
In the mean time I have changed line 502
$form['#collapsed'] = empty($tags);to
$form['#collapsed'] =TRUE;in nodewords.module and it seems to have fixed the problem.
Comment #5
rkdesantos commentedYes, this seems to have fixed the problem for me, too. The 6.x version handles this differently than 5.x which does this:
$form['#collapsed'] = empty($tags) && !$expanded;Comment #6
David Naian commentedHi, do someone know how to have a collapsed status of fieldset when we use:
in a node?
hints for Drupal 5 and 6 would be great
Comment #7
micheleannj commentedsubscribing: would love a real fix for this so I'm not hacking the module...
Comment #8
talktozee commentedSame here...
Comment #9
tsvenson commentedThis is especially irritating when working with views, the fieldset takes up half my screen there.
Comment #10
psynaptic commentedThis is the exact same problem I've been on about since: #293350: Why do I have to click "Meta Tags" in edit form to display description and keywords fields?
I have found these related issues:
#382448: meta tags fieldset always expanded
#371062: Views UI shows nodewords as a fieldset
#383098: Views - meta tags fieldset default to collapsed
Please, please change all Meta tags fieldsets to collapsed by default. This is a small change to the code and a significant improvement to usability.
Marking as needs review to flag to maintainer.
Comment #11
psynaptic commentedSingle line change, patch attached...
Comment #12
avpadernoI have set #382448: meta tags fieldset always expanded.
I am setting this report as postponed because I will make the necessary changes in the next 36 hours.
Comment #13
avpadernoComment #14
avpadernoThis has been changed in version 6.x-1.x-dev.
Comment #15
psynaptic commentedThank you!
Comment #17
kim.pepperThanks for changing!