Support from Acquia helps fund testing for Drupal Acquia logo

Comments

valthebald’s picture

Can be easily achieved with http://drupal.org/project/field_group

davemybes’s picture

Sure, but that requires manual creation of the fieldset and manual moving of the fields into it. I was thinking that when you add the fields to the various content types, it would automatically stick them into a Metatags fieldset.

valthebald’s picture

Maybe the right solution is to create a feature (as in http://drupal.org/project/features) that will incorporate pre-made fieldset with meta tag fields? Thus we can avoid duplicating code.

davemybes’s picture

Not sure how that would work...so I'm looking at just doing a form_alter in a custom module. But thanks for the suggestions.

valthebald’s picture

I have attached example feature created with features module. It contains Basic page content type with meta fields placed in vertical tab in the node edit form.
Feature can be installed just like any other module, yet is much easier to maintain/upgrade.

valthebald’s picture

Previous comment contains wrong archive

davemybes’s picture

Status: Active » Fixed

Thanks, Val. I appreciate your time on this. That works fine.

Status: Fixed » Closed (fixed)

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

kpv’s picture

FileSize
863 bytes

Here is a module that puts keywords and description fields into a fieldset. You can easily add other fields. Just add their ids to $field_ids array inside metatags_fieldset_form_alter function.

valthebald’s picture

#9: This will work, however, features+field group will give you more flexibility with zero coding.

kpv’s picture

FileSize
899 bytes

#10: That's right. This one is just enough for me. By the way, found a nonsignificant bug. Uploading new version )

doublejosh’s picture

FileSize
2.44 KB

This will do it to all of them.

doublejosh’s picture

Status: Closed (fixed) » Closed (won't fix)

Sure would be lovely as a setting in the module.
Might be nice to place them within a programatic fieldset on the content type editing form too, if the options was ticked.