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.
Would be nice to group the fields together :-).
Comment | File | Size | Author |
---|---|---|---|
#12 | metatags_fieldset.zip | 2.44 KB | doublejosh |
#11 | metatags_fieldset.tar_.gz | 899 bytes | kpv |
#9 | metatags_fieldset.tar_.gz | 863 bytes | kpv |
#6 | basic_page_with_meta-7.x-1.0.tar_.gz | 1.76 KB | valthebald |
#5 | basic_page_with_meta-7.x-1.0.tar_.gz | 1.42 KB | valthebald |
Comments
Comment #1
valthebaldCan be easily achieved with http://drupal.org/project/field_group
Comment #2
davemybes CreditAttribution: davemybes commentedSure, 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.
Comment #3
valthebaldMaybe 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.
Comment #4
davemybes CreditAttribution: davemybes commentedNot sure how that would work...so I'm looking at just doing a form_alter in a custom module. But thanks for the suggestions.
Comment #5
valthebaldI 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.
Comment #6
valthebaldPrevious comment contains wrong archive
Comment #7
davemybes CreditAttribution: davemybes commentedThanks, Val. I appreciate your time on this. That works fine.
Comment #9
kpv CreditAttribution: kpv commentedHere 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 insidemetatags_fieldset_form_alter
function.Comment #10
valthebald#9: This will work, however, features+field group will give you more flexibility with zero coding.
Comment #11
kpv CreditAttribution: kpv commented#10: That's right. This one is just enough for me. By the way, found a nonsignificant bug. Uploading new version )
Comment #12
doublejosh CreditAttribution: doublejosh commentedThis will do it to all of them.
Comment #13
doublejosh CreditAttribution: doublejosh commentedSure 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.