How do I use Schema.org to identify filters on our hotel search site?

戏子无情 提交于 2019-12-07 00:30:00

Is there a way of identifying our filters as being tools for adjusting the list?

With an Action type.

See SearchAction or perhaps FindAction (DiscoverAction).

An Action can be used to represent what happened (e.g., "User 3 searched for hotels in Amsterdam"), but also for representing potential actions: use the potentialAction property to specify the possible actions an item can have.

<section itemscope itemtype="http://schema.org/ItemList">
  <div itemprop="potentialAction" itemscope itemtype="http://schema.org/SearchAction">
    …
  </div>
</section>

Side notes about your markup

  • Your image property won’t work, it can’t have an image specified in the style attribute as value. You have to provide the image property on a "link" element (e.g., img, a, link, …).

  • Your Offer is not associated with the Hotel. You could use the makesOffer property.

<div itemscope itemtype="http://schema.org/Hotel">
 <img itemprop="image" src="http://yourhostel.es/content/124"/>
 <meta itemprop="address" content="you street"/>
<h2 class="title" itemprop="name">name </h2>
<div itemprop="priceRange">price</div><div itemprop="telephone">9999999</div>

price

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!