Skip to main content

PublicCollectionTypeContent

This holds content specific to a collectionType. This is generally used on a page that lists all collections for a collectionType.

type PublicCollectionTypeContent {
collectionType: String!
collectionTypeContentId: ID!
contentAsHtml: String
contentAsString: String
demandHqId: ID!
description: String
descriptionOrExcerpt(
numberOfCharacters: Int
): String
excerpt(
numberOfCharacters: Int
): String
secondaryContentAsHtml: String
secondaryContentAsString: String
seoDescription: String
seoTitle: String
storefrontId: ID!
subtitle: String
tags: CollectionTypeContentTags
title: String
}

Fields​

PublicCollectionTypeContent.collectionType ● String! non-null scalar​

PublicCollectionTypeContent.collectionTypeContentId ● ID! non-null scalar​

PublicCollectionTypeContent.contentAsHtml ● String scalar​

Get the markdown content of the collectionTypeContent as parsed HTML. Do not use this field without purifying or sanitizing the HTML in your webapp.

PublicCollectionTypeContent.contentAsString ● String scalar​

PublicCollectionTypeContent.demandHqId ● ID! non-null scalar​

PublicCollectionTypeContent.description ● String scalar​

A short description of the collectionTypeContent, limit 1000 characters. This is typically used off of the collectionTypeContent page itself.

PublicCollectionTypeContent.descriptionOrExcerpt ● String scalar​

Get the description if it exists, or fallback to the excerpt of content for the CollectionTypeContent.

PublicCollectionTypeContent.descriptionOrExcerpt.numberOfCharacters ● Int scalar​

The number of characters to return, defaults to 200.

PublicCollectionTypeContent.excerpt ● String scalar​

Get an excerpt of the CollectionTypeContent.

PublicCollectionTypeContent.excerpt.numberOfCharacters ● Int scalar​

The number of characters to return, defaults to 200.

PublicCollectionTypeContent.secondaryContentAsHtml ● String scalar​

Get the secondary markdown content of the collectionTypeContent as parsed HTML. Do not use this field without purifying or sanitizing the HTML in your webapp.

PublicCollectionTypeContent.secondaryContentAsString ● String scalar​

PublicCollectionTypeContent.seoDescription ● String scalar​

Description specific for SEO purposes, limit 170 characters.

PublicCollectionTypeContent.seoTitle ● String scalar​

Title specific for SEO purposes, limit 256 characters.

PublicCollectionTypeContent.storefrontId ● ID! non-null scalar​

PublicCollectionTypeContent.subtitle ● String scalar​

The subtitle of the collectionTypeContent, limit 256 characters.

PublicCollectionTypeContent.tags ● CollectionTypeContentTags object​

These tags function in the opposite direction of other tags, allowing you to choose several to focus on while displaying the content. Commonly, these are used to filter or categorize content by providing options that match tags on the content itself.

PublicCollectionTypeContent.title ● String scalar​

The title of the collectionTypeContent, limit 256 characters.

Returned by​

collectionTypeContent query

Member of​

PublicCollectionTypeContentConnection object ● PublicCollectionTypeContentEdge object