drupal-7 - 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模块,仅在自定义模块上使用自定义代码。具体错误在“发布者对象”上,见下图。再次感谢您!
解决方案
推荐阅读
- javascript - 难以将正则表达式与过滤方法匹配
- jquery - 将选定选项从多个选择标签推送到数组中
- python - 如何使用 Python 将每个月的常数乘以原始时间序列
- python - 如何将此函数映射到 pyspark
- vue.js - Vue - 将道具传递给计算
- java - Spring Boot 2 静态资源子文件夹
- visual-studio-code - 可以在 Emmet 自动完成上更改类标签名称吗?
- r - ggplot2热图没有从高到低排列值
- gnuplot - brew install gnuplot --with-qt --with-x11 不工作
- typescript - Typescript 中的泛型函数图