问题描述
我创建了一封带有Microdata的电子邮件,用于EventReservation。收到邮件后,Gmail会正确识别有关事件日期,地点等的信息。但是我添加了自定义 action 来访问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>
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)