Mobile app version of vmapp.org
Login or Join
Gloria169

: What is the correct way to use the CollectionPage type for a 'category' page? If I have a category page that has a list of links to the specific items, this page would be a CollectionPage

@Gloria169

Posted in: #Collectionpage #SchemaOrg #Significantlinks

If I have a category page that has a list of links to the specific items, this page would be a CollectionPage with significantLinks, right?

I thought this would be the correct basic implementation:

{
"@context": "http://schema.org",
"@type": "WebPage",
"url": "http://example.com/animals",
"mainEntity":{
"@type": "CollectionPage",
"significantLinks": [
"http://example.com/animals/dog",
"http://example.com/animals/cat"
]
}
}


But this feels like it's missing something (labels, for example). I also saw the hasPart property which seems like it should be used in a page like this, but using both hasPart and significantLinks feels very disconnected.

Thoughts?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Gloria169

1 Comments

Sorted by latest first Latest Oldest Best

 

@Ogunnowo487

You should use CollectionPage instead of WebPage, not in addition to it. CollectionPage is a more specific WebPage.



It seems that significantLink (for URL values) as well as hasPart (for CreativeWork values) could be used. But I think hasPart is the better choice here, because significantLink could also be used for pages that don’t belong to the category (so for consumers it’s not necessarily clear that these are category items), and hasPart would allow you to provide metadata (in case you need on the category page).

Another option is to use mainEntity to reference an ItemList. This is what I would prefer. It makes clear that the list is the primary entity of the CollectionPage, so for consumers it’s probably clear that this is the collection.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme