[英]Gmail Markup for Multiple Events
I'm developing event markup using json-ld to be included with confirmation emails. 我正在使用json-ld开发事件标记以包含在确认电子邮件中。
Some of my events are recurring at regular intervals. 我的一些活动定期重复出现。 However, recurring events are not supported by the latest Schema.org specifications so I've followed the advice offered here: http://lists.w3.org/Archives/Public/public-vocabs/2011Dec/0062.html and decided to embed a json list of the individual events.
但是,最新的Schema.org规范不支持重复发生的事件,因此我遵循了此处提供的建议: http : //lists.w3.org/Archives/Public/public-vocabs/2011Dec/0062.html并决定嵌入个人事件的json列表。
The json-ld passes the tests in the Email Markup Tester provided by google ( https://www.google.com/webmasters/markup-tester/u/0/ ). json-ld通过了谷歌( https://www.google.com/webmasters/markup-tester/u/0/ )提供的电子邮件标记测试程序中的测试。
However, when I test the google calendar integration by sending the email to myself, only 1 out of 6 events in the series appears in my calendar (oddly, it's neither the first or last event in the list). 但是,当我通过向自己发送电子邮件来测试Google日历集成时,系列中只有6个事件出现在我的日历中(奇怪的是,它既不是列表中的第一个或最后一个事件)。
Does gmail markup support multiple events in the same email? gmail标记是否支持同一电子邮件中的多个事件? If so is there a better way to do it?
如果是这样,有更好的方法吗?
Example Markup: 示例标记:
<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文件中添加此标记。
Does making a list help: https://schema.org/ItemList 制作列表有帮助: https : //schema.org/ItemList
Haven't tested this out, but it might be a useful approach. 没有测试过,但它可能是一个有用的方法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.