[英]Gmail Markup for Multiple Events
我正在使用json-ld开发事件标记以包含在确认电子邮件中。
我的一些活动定期重复出现。 但是,最新的Schema.org规范不支持重复发生的事件,因此我遵循了此处提供的建议: http : //lists.w3.org/Archives/Public/public-vocabs/2011Dec/0062.html并决定嵌入个人事件的json列表。
json-ld通过了谷歌( https://www.google.com/webmasters/markup-tester/u/0/ )提供的电子邮件标记测试程序中的测试。
但是,当我通过向自己发送电子邮件来测试Google日历集成时,系列中只有6个事件出现在我的日历中(奇怪的是,它既不是列表中的第一个或最后一个事件)。
gmail标记是否支持同一电子邮件中的多个事件? 如果是这样,有更好的方法吗?
示例标记:
<script type="application/ld+json">
[
{
"reservationNumber": "7e15afb6b2485005e55481be58de4141b70f85006bd25823",
"reservationFor": {
"startDate": "2015-05-09T16:00:00-07:00",
"endDate": "2015-05-09T22:30:00-07:00",
"description": "regularly schedule XXXX",
"location": {
"address": {
"addressCountry": "US",
"addressLocality": "XXX",
"addressRegion": "XXX",
"streetAddress": "XXX",
"postalCode": "XXX",
"@type": "PostalAddress"
},
"@type": "Place",
"name": "XXX"
},
"@type": "Event",
"name": "XXX Every 2 Weeks"
},
"modifyReservationUrl": "https://example.com/XXX",
"reservationStatus": "http://schema.org/Confirmed",
"underName": {
"@type": "Person",
"name": "XXX"
},
"@context": "http://schema.org",
"@type": "EventReservation"
},
...
{
"reservationNumber": "40553edbce52f0052e153919a4dad49ec32516c15433bf4a",
"reservationFor": {
"startDate": "2015-05-23T16:00:00-07:00",
"endDate": "2015-05-23T22:30:00-07:00",
"description": "regularly schedule XXX",
"location": {
"address": {
"addressCountry": "US",
"addressLocality": "XXX",
"addressRegion": "XXX",
"streetAddress": "XXX",
"postalCode": "XXX",
"@type": "PostalAddress"
},
"@type": "Place",
"name": "XXX"
},
"@type": "Event",
"name": "XXX Every 2 Weeks"
},
"modifyReservationUrl": "https://example.com/XXX",
"reservationStatus": "http://schema.org/Confirmed",
"underName": {
"@type": "Person",
"name": "XXX"
},
"@context": "http://schema.org",
"@type": "EventReservation"
},
]
</script>
您可以尝试使用此处文档中提到的Quick Apps脚本教程在html文件中添加此标记。
制作列表有帮助: https : //schema.org/ItemList
没有测试过,但它可能是一个有用的方法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.