When editting a node the yoast block is always shown. It makes the edit page longer than necessary. Is it possible to make the display more configurable or even have it by default as a vertical tab (like menu settings / revision information / comment settings / etc)

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

marcel.jtf created an issue. See original summary.

paulihuhtiniemi’s picture

At least it should show up as a field in Manage Fields page. Now there isn't really any easy way to control the position of Yoast element in node edit page.

sketman’s picture

I agree, having the Yoast widget displayed in Manage Fields settings form would be useful.

mrcharles’s picture

+1. On complex node types with many fields, using a module like field_group is a must. If Yoast offers no control on how it is displayed in the manage fields section of content type administration, it just lurks around oddly when someone is adding content.

Thanks in advance for any development in this area.

c_archer’s picture

Version: 7.x-1.0-beta1 » 7.x-1.1
Component: User interface » Code
FileSize
3.22 KB

HI,

I had the same issue so have created a Patch create a setting on the settings page "/admin/config/search/yoast" which allows you to choose wether Yoast sits in a vertical tab or not.

Thanks,
Chris

c_archer’s picture

c_archer’s picture

Is anybody able to review this?

jmcintyre’s picture

If you want a quick-and-dirty solution while waiting for a fix, implement this in a custom module:

/**
 * Implements hook_form_alter().
 */
function MYMODULE_form_alter(&$form, &$form_state) {
  if (isset($form['yoast_seo'])) {
    $form['yoast_seo']['#type'] = 'fieldset';
    $form['yoast_seo']['#group'] = 'additional_settings';
  }
}
c_archer’s picture

Status: Active » Needs review
szt’s picture

Version: 7.x-1.1 » 7.x-1.x-dev
Status: Needs review » Reviewed & tested by the community

I confirm that #5 works as expected.

Kingdutch’s picture

Status: Reviewed & tested by the community » Fixed

I've reduced the patch to only change the behaviour of the SEO analysis on the edit page and to leave the settings page without vertical tabs. The settings page is small enough at this point that it's not worth hiding options from first visiting users.

I've also simplified some logic and fixed some coding standards issues.

Thanks everyone!

  • Kingdutch committed 52cb19e on 7.x-1.x authored by c_archer
    Issue #2610674 by c_archer, szt, kingdutch: display as vertical tab in...

Status: Fixed » Closed (fixed)

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