google-schemas - 活动预订电子邮件标记无法识别“操作”属性
问题描述
我创建了一封包含 Microdata for EventReservation 的电子邮件。当我收到邮件时,Gmail 可以正确识别有关事件日期、地点等的信息。但是我添加了一个自定义操作来访问 Gmail 无法识别的网页。我仍然支持Gmail 的Event 的这个action属性。微数据如下所示:
<div itemscope itemtype="http://schema.org/EventReservation">
<meta itemprop="reservationNumber" content="1000"/>
<link itemprop="reservationStatus" href="http://schema.org/ReservationConfirmed">
<link itemprop="modifyReservationUrl" href="https://www.mywebsite.com/1000">
<div itemprop="underName" itemscope itemtype="http://schema.org/Person">
<meta itemprop="name" content="Name"/>
<div itemprop="action" itemscope itemtype="http://schema.org/Action">
<meta itemprop="name" content="Go to my web site"/>
<link itemprop="url" href="https://www.mywebsite.com/action"/>
</div>
</div>
<div itemprop="reservationFor" itemscope itemtype="http://schema.org/Event">
<meta itemprop="name" content="Event name"/>
<meta itemprop="startDate" content="2020-09-01T18:00:00+0000"/>
<meta itemprop="endDate" content="2020-09-01T19:00:00+0000"/>
<div itemprop="performer" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="Event Performer Name}}"/>
</div>
<div itemprop="location" itemscope itemtype="http://schema.org/Place">
<meta itemprop="name" content="Address name"/>
<div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
<meta itemprop="streetAddress" content="Address">
<meta itemprop="addressLocality" content="Locality">
<meta itemprop="addressRegion" content="Region"/>
<meta itemprop="postalCode" content="PostCode">
<meta itemprop="addressCountry" content="Country">
</div>
</div>
</div>
</div>
解决方案
推荐阅读
- angular - Angular 条件表单验证器
- android - Kivy 在 Android 上更改图像分辨率
- javascript - 在一些随机数字之后在字符串中添加空格
- coded-ui-tests - 如何使用codedui单击wintable上的确切行?
- python-3.x - 如何使用 oop 在 python 中创建嵌套列表?
- javascript - 在 php 中编码数据并在 Javascript (ajax) 中解压缩
- android - 在回收站视图中显示和隐藏 TextView 对象
- javascript - 我如何从 Google 提要表单中删除 JavaScript 代码
- android - 有没有办法让 Path 不可变?
- audio - C# 音频目录问题