首页 > 解决方案 > Drupal 中“文章”结构化数据的正确方法

问题描述

我的问题不仅限于 drupal CMS。我正在通过在我网站的每个“文章”上添加结构化数据来改进 SEO。我不明白为什么“谷歌结构化数据测试工具”不能验证这种 ldjson 对象......有人可以帮助我吗?

提前致谢

<script type="application/ld+json">{ 
   "@context":"http://schema.org/",
   "@type":"Article",
   "articleBody":"azea",
   "speakable":{ 
      "@type":"SpeakableSpecification",
      "cssSelector":[ 
         "p"
      ]
   },
   "accessMode":[ 
      "textual",
      "visual"
   ],
   "accessModeSufficient":[ 
      "textual",
      "visual"
   ],
   "accessibilityControl":[ 
      "fullKeyboardControl",
      "fullMouseControl"
   ],
   "backstory":"Test Workflow 01",
   "dateCreated":"2019-10-08",
   "dateModified":"2019-10-15",
   "headline":"Test Workflow 01 Redacteur AABis",
   "inLanguage":{ 
      "@type":"Language",
      "name":"French",
      "alternateName":"fr"
   },
   "isAccessibleForFree":true,
   "isFamilyFriendly":true,
   "producer":{ 
      "@type":"Organization",
      "name":"TEST"
   },
   "author":{ 
      "@type":"Organization",
      "name":"TEST"
   },
   "provider":{ 
      "@type":"Organization",
      "name":"TEST"
   },
   "publisher":{ 
      "@type":"Organization",
      "name":"TEST",
      "logo":"https://test.fr/sites/default/files/logo.png"
   },
   "mainEntityOfPage":"/node/xxx",
   "sourceOrganization":{ 
      "@type":"Organization",
      "name":"TEST"
   },
   "text":"azea",
   "articleSection":"TEST",
   "keywords":"Test Workflow 01",
   "datePublished":"2019-10-08",
   "thumbnailUrl":"https://test.fr/sites/default/files/drupal/201906/image/logo_connect_3.png",
   "image":"https://test.fr/sites/default/files/drupal/201906/image/logo_connect_3.png"
}</script>

更多... 我不为此使用drupal模块,仅在自定义模块上使用自定义代码。具体错误在“发布者对象”上,见下图。再次感谢您!

数据结构错误

标签: drupal-7structured-data

解决方案


推荐阅读