2016-02-10 33 views
0

我嘗試爲我們使用的某些模板中的產品網頁優化microdata/schema.org/豐富網頁摘要標記。產品中的優惠(schema.org /豐富網頁摘要)

,而這樣做放置itemprop = 「報價」 的itemscope項目類型= 「http://schema.org/Offer」一個的itemscope項目類型= 「http://data-vocabulary.org/Product」

哪些應努力按照

以及

,但無法驗證的Google's Structured Data testing tool

能有人給我一些見解上的信息,我應該集中? 「優惠」提供了一些我真正想在產品中使用的有趣屬性。

同樣適用於isRelatedTo它在schema.org上提及但未驗證。

回答

1

您正在使用來自詞彙表Data-Vocabulary.org的Product類型和offers¹屬性以及來自詞彙表Schema.org的Offer類型。 (¹我不知道是否真的Data-Vocabulary.org定義的offers財產;大部分網站似乎被刪除。)

如果您希望谷歌搜索來消耗你的數據,you’ll want使用的詞彙模式。有機

Schema.org還具有表示產品類型(Product)和用於從一個Productoffers)引用一個Offer的性質。

微觀數據,這可能是這樣的:

<article itemscope itemtype="http://schema.org/Product"> 
    <div itemprop="offers" itemscope itemtype="http://schema.org/Offer"> 
    </div> 
</article> 
相關問題