PageTypeContent
This holds content specific to a pageType. This is generally used on a page that lists all pages for a pageType.
type PageTypeContent {
contentAsHtml: String
contentAsString: String
createdAt: Date!
demandHqId: ID!
description: String
descriptionOrExcerpt(
numberOfCharacters: Int
): String
excerpt(
numberOfCharacters: Int
): String
pageType: String!
pageTypeContentId: ID!
secondaryContentAsHtml: String
secondaryContentAsString: String
seoDescription: String
seoTitle: String
storefrontId: ID!
subtitle: String
tags: PageTypeContentTags
title: String
updatedAt: Date!
updatedBy: ID!
}
Fields
PageTypeContent.contentAsHtml
● String
scalar
Get the markdown content of the pageTypeContent as parsed HTML. Do not use this field without purifying or sanitizing the HTML in your webapp.
PageTypeContent.contentAsString
● String
scalar
PageTypeContent.createdAt
● Date!
non-null scalar
PageTypeContent.demandHqId
● ID!
non-null scalar
PageTypeContent.description
● String
scalar
A short description of the pageTypeContent, limit 1000 characters. This is typically used off of the pageTypeContent page itself.
PageTypeContent.descriptionOrExcerpt
● String
scalar
Get the description if it exists, or fallback to the excerpt of content for the PageTypeContent.
PageTypeContent.descriptionOrExcerpt.numberOfCharacters
●Int
scalarThe number of characters to return, defaults to 200.
PageTypeContent.excerpt
● String
scalar
Get an excerpt of the PageTypeContent.
PageTypeContent.excerpt.numberOfCharacters
●Int
scalarThe number of characters to return, defaults to 200.
PageTypeContent.pageType
● String!
non-null scalar
PageTypeContent.pageTypeContentId
● ID!
non-null scalar
PageTypeContent.secondaryContentAsHtml
● String
scalar
Get the secondary markdown content of the pageTypeContent as parsed HTML. Do not use this field without purifying or sanitizing the HTML in your webapp.
PageTypeContent.secondaryContentAsString
● String
scalar
PageTypeContent.seoDescription
● String
scalar
Description specific for SEO purposes, limit 170 characters.
PageTypeContent.seoTitle
● String
scalar
Title specific for SEO purposes, limit 256 characters.
PageTypeContent.storefrontId
● ID!
non-null scalar
PageTypeContent.subtitle
● String
scalar
The subtitle of the pageTypeContent, limit 256 characters.
PageTypeContent.tags
● PageTypeContentTags
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.
PageTypeContent.title
● String
scalar
The title of the pageTypeContent, limit 256 characters.
PageTypeContent.updatedAt
● Date!
non-null scalar
PageTypeContent.updatedBy
● ID!
non-null scalar
Returned by
createPageTypeContent
mutation ● pageTypeContent
query ● updatePageTypeContent
mutation
Member of
PageTypeContentConnection
object ● PageTypeContentEdge
object