diff --git a/MODULES.md b/MODULES.md index 7d0c14d4b8cde65c5e040527d10f278b945c8078..3421ea62e0980d82b129b8e04670b7e9e1e95bf7 100644 --- a/MODULES.md +++ b/MODULES.md @@ -81,6 +81,7 @@ * [Simple XML Sitemap](https://drupal.org/project/simple_sitemap) * [Sitemap](http://drupal.org/project/sitemap) * [Token Or](https://www.drupal.org/project/token_or) +* [Real-time SEO for Drupal](http://drupal.org/project/yoast_seo) ## Drupal CMS * [Automatic Updates](https://www.drupal.org/project/automatic_updates) * [BPMN.iO for ECA](https://www.drupal.org/project/bpmn_io) diff --git a/recipes/drupal_cms_seo_tools/composer.json b/recipes/drupal_cms_seo_tools/composer.json index 0213763b497d658395082f45eea01d21e1b40fe7..92346de81c3ddb6aec197c1afd25667b4521caeb 100644 --- a/recipes/drupal_cms_seo_tools/composer.json +++ b/recipes/drupal_cms_seo_tools/composer.json @@ -12,7 +12,8 @@ "drupal/seo_checklist": "^5.2.1", "drupal/simple_sitemap": "^4.2.2", "drupal/sitemap": "^2", - "drupal/token_or": "^2.2" + "drupal/token_or": "^2.2", + "drupal/yoast_seo": "^2" }, "suggest": { "drupal/drupal_cms_analytics": "Adds recipes for tracking website traffic.", diff --git a/recipes/drupal_cms_seo_tools/config/field.storage.node.field_seo_analysis.yml b/recipes/drupal_cms_seo_tools/config/field.storage.node.field_seo_analysis.yml new file mode 100644 index 0000000000000000000000000000000000000000..8cf8d78ced8c3c30a500aa00e204ad523f76e8e7 --- /dev/null +++ b/recipes/drupal_cms_seo_tools/config/field.storage.node.field_seo_analysis.yml @@ -0,0 +1,18 @@ +langcode: en +status: true +dependencies: + module: + - node + - yoast_seo +id: node.field_seo_analysis +field_name: field_seo_analysis +entity_type: node +type: yoast_seo +settings: { } +module: yoast_seo +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/recipes/drupal_cms_seo_tools/recipe.yml b/recipes/drupal_cms_seo_tools/recipe.yml index c9de0241615807ba1a106712a24bd0d958b6d9e4..5512a717bf34b43086f9a6e08495947844394f60 100644 --- a/recipes/drupal_cms_seo_tools/recipe.yml +++ b/recipes/drupal_cms_seo_tools/recipe.yml @@ -17,9 +17,11 @@ install: - simple_sitemap - sitemap - token_or + - yoast_seo config: # Treat all field storages strictly, since they influence the database layout. strict: + - field.storage.node.field_seo_analysis - field.storage.node.field_seo_description - field.storage.node.field_seo_image - field.storage.node.field_seo_title @@ -33,6 +35,10 @@ config: simple_sitemap: '*' actions: # Add SEO fields to all content types that are installed. + field.storage.node.field_seo_analysis: + addToAllBundles: + label: 'SEO analysis' + description: 'Pick the main keyword this page is about.' field.storage.node.field_seo_description: addToAllBundles: label: 'SEO description' @@ -63,6 +69,7 @@ config: - field_seo_title - field_seo_description - field_seo_image + - field_seo_analysis label: 'Search Engine Optimization (SEO) Information' region: content parent_name: '' @@ -77,6 +84,17 @@ config: description: '' required_fields: false setComponents: + - + name: field_seo_analysis + options: + type: yoast_seo_widget + weight: 18 + region: content + settings: + render_theme: NULL + render_view_mode: default + edit_title: 0 + edit_description: 0 - name: field_seo_description options: