Schema.org for Category页面

时间:2017-11-27 12:50:04

标签: categories schema.org json-ld

背景故事:我在电子商务商店工作,我们有类别页面显示产品的缩略图,以及它们的价格,名称和简短描述。无法从此页面购买,需要先输入产品详细信息页面。

我真的很困惑在类别页面上使用schema.org。

提出了几个解决方案,但不能说出哪一个最好(更喜欢最后一个)

    {li>

    ItemList内置ListItems,建议https://developers.google.com/search/docs/guides/mark-up-listings (不支持产品,但它显示了在网站上放置几个项目背后的想法)

    {
    "@context": "http://schema.org",
    "@type": "ItemList",
    "name": "T-Shirt",
    "url": "/category/t-shirt/",
    "description": "Deserunt quibusdam ipsa illo ex nam ea illo qui. Itaque maiores doloribus accusamus ratione. Aperiam ipsa veritatis quas nisi.",
    "itemListOrder": "Unordered",
    "numberOfItems": 2,
    "itemListElement": [
        {
            "@type": "ListItem",
            "position": 1,
            "url": "/products/lopez-smith-25/?color=yellow&size=XXL",
            "name": "Yellow Lopez-Smith",
            "image": {
                "@context": "http://schema.org",
                "@type": "ImageObject",
                "contentUrl": "/media/__sized__/products/yellow_n2QjKzn-thumbnail-640x640-70.jpg",
                "description": "Lopez-Smith",
                "width": 640,
                "height": 640
            }
        },
        {
            "@type": "ListItem",
            "position": 2,
            "url": "/products/lopez-smith-25/?color=blue&size=37",
            "name": "Blue Lopez-Smith",
            "image": {
                "@context": "http://schema.org",
                "@type": "ImageObject",
                "contentUrl": "/media/__sized__/products/blue_FZ3yJjG-thumbnail-640x640-70.jpg",
                "description": "Lopez-Smith",
                "width": 640,
                "height": 640
            }
        }
    ]
    }
    
    1. https://developers.google.com/search/docs/guides/sd-policies推荐的几种产品 使用@graph
    2. 加入到一起
      

    列出多个不同产品(或食谱,视频或任何其他类型)的类别页面。应使用相关的schema.org类型标记每个实体,例如schema.org/Product用于产品类别页面。但是,如果标记了一个项目,则应标记所有项目。此外,除非这是轮播页面,否则标记的项目不应链接到单独的详细信息页面。

    {
        "@context": "http://schema.org",
        "@graph": [
            {
                "@type": "Product",
                "@id": "/category/t-shirt/p-1",
                "description": "Nobis vel fugiat e",
                "name": "Yellow Lopez-Smith",
                "offers": {
                    "@type": "Offer",
                    "availability": "http://schema.org/InStock",
                    "price": "18.28",
                    "priceCurrency": "GBP",
                    "itemCondition": "http://schema.org/NewCondition",
                    "description": "Nobis vel fugiat e",
                    "name": "Yellow Lopez-Smith",
                    "gtin13": "68614",
                    "category": "T-Shirt",
                    "image": {
                        "@context": "http://schema.org",
                        "@type": "ImageObject",
                        "contentUrl": "/media/__sized__/products/yellow_n2QjKzn-thumbnail-640x640-70.jpg",
                        "description": "Lopez-Smith",
                        "width": 640,
                        "height": 640
                    }
                }
            },
            {
                "@type": "Product",
                "@id": "/category/t-shirt/p-2",
                "description": "Nobis vel fugiat e",
                "name": "Blue Lopez-Smith",
                "offers": {
                    "@type": "Offer",
                    "availability": "http://schema.org/InStock",
                    "price": "22.64",
                    "priceCurrency": "GBP",
                    "itemCondition": "http://schema.org/NewCondition",
                    "description": "Nobis vel fugiat e",
                    "name": "Blue Lopez-Smith",
                    "gtin13": "73963",
                    "category": "T-Shirt",
                    "image": {
                        "@context": "http://schema.org",
                        "@type": "ImageObject",
                        "contentUrl": "/media/__sized__/products/blue_FZ3yJjG-thumbnail-640x640-70.jpg",
                        "description": "Lopez-Smith",
                        "width": 640,
                        "height": 640
                    }
                }
            }
        ]
    }
    
    1. ProductsItemOffered的{​​{1}}不同{基于Ebay}

      Offer
    2. 任何帮助将不胜感激

0 个答案:

没有答案