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.

CommentFileSizeAuthor
#11 nodewords-collpase_fieldsets.patch949 bytespsynaptic

Comments

James Yap’s picture

1 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.

rkdesantos’s picture

Category: support » feature

This should also be the default behavior in the module for v5 of Drupal.

extect’s picture

+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.

clarkburbidge’s picture

+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.

rkdesantos’s picture

Yes, 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;

David Naian’s picture

Hi, do someone know how to have a collapsed status of fieldset when we use:

<?php
drupal_add_js('misc/collapse.js');
?>

in a node?

hints for Drupal 5 and 6 would be great

micheleannj’s picture

subscribing: would love a real fix for this so I'm not hacking the module...

talktozee’s picture

Same here...

tsvenson’s picture

This is especially irritating when working with views, the fieldset takes up half my screen there.

psynaptic’s picture

Status: Active » Needs review

This 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.

psynaptic’s picture

StatusFileSize
new949 bytes

Single line change, patch attached...

avpaderno’s picture

Assigned: Unassigned » avpaderno

I 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.

avpaderno’s picture

Status: Needs review » Postponed
avpaderno’s picture

Status: Postponed » Fixed

This has been changed in version 6.x-1.x-dev.

psynaptic’s picture

Thank you!

Status: Fixed » Closed (fixed)

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

kim.pepper’s picture

Thanks for changing!