It would be best if it appeared above the Save button or within the vertical tabs. See screenshot of what I'm seeing.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Goekmen’s picture

I have this problem too. Is there a workaround?

chasingmaxwell’s picture

The easiest, hackerrific workaround is to just change $form['opengraph_meta']['#weight'] in opengraph_meta_form_alter() (which is currently hardcoded to 100). As to the solution, should this be added as a field instead of through a form_alter function? That way the user would have more control of how it appears on the node form. I could see that being much more complicated though.

capellic’s picture

Or use the Meta Tag module which includes Open Graph support. http://drupal.org/project/metatag

jenlampton’s picture

Title: The "Open Graph Meta Tags" fieldset appears below the Save button on node forms » Move the "Open Graph Meta Tags" fieldset into vertical tabs
Issue summary: View changes

I'm also having problems with the open graph fieldset. It really belongs in the vertical tabs with all the other fieldsets, updating issue title to match.

gsutcliffe’s picture

This is an old thread but it's something I worked on today. Without hacking a solution it can be placed in a custom module. You have no control over the weight within the opengraph_meta form, so instead move what you need under the opengraph_meta section. Below is the code to move the vertical tabs and action buttons to the bottom.

/**
 * Implementation of hook_form_alter.
 */
function MODULE_form_alter(&$form, $form_state, $form_id) {
	// if editing a node place "Open Graph meta tags" above additional settings and actions
	if ('node_form' == stristr($form_id, 'node_form')) {
		if ($form_id == 'article_node_form') {
			$form['additional_settings']['#weight'] = 101;
			$form['actions']['#weight'] = 115;
		}
	}
}
hugronaphor’s picture

Status: Active » Needs review
FileSize
392 bytes

Why don't we just append the current fieldset to the vertical_tabs group? All other core modules(book, menu,..) do the same.
As quick altering hook implement:

/**
 * Implements hook_form_alter().
 */
function HOOK_form_alter(&$form, &$form_state, $form_id) {
  // Assign opengraph_meta fieldset to "Vertical Tabs".
  if ('node_form' == stristr($form_id, 'node_form')) {
    if (!empty($form['opengraph_meta'])) {
      $form['opengraph_meta']['#group'] = 'additional_settings';
    }
  }
}

And the patch itself...

Daniel Schaefer’s picture

Status: Needs review » Reviewed & tested by the community

Applied patch to latest 7.x-2.0-alpha3 and it worked instantly. I think we can go ahead and commit this change.

rcodina’s picture

Works for me too on 7.x-2.x-dev. Thanks!