Types > ContentBlock
Commerce APITypesContentBlock
ContentBlock

Description

Topic: Content Blocks

Fields

author: String!

The name of the person who created the content block

Example: "Lydia"


content_image_files: [File]

Image files referenced by "raw_content".

Translatable

Expandable

Permission bit: "files.read"


created_at: String!

The date and time when the content block was created, RFC 3339 format

Example: "2014-09-04T12:23:34Z"

Timestamp (RFC 3339)


custom_field_objects: CustomFieldObjects

Custom field objects extracted and ready for expansion

Translatable


custom_fields: [CustomField!]!


handle: String!

An URL-friendly unique string for the content block automatically generated from its title

Example: "terms-of-services"


id: String!

Unique content block identifier. See also: Unique Identifiers

Example: "bl_EQzGqWoY"


is_page: Boolean!

Whether this content block is a page or not (available through router path)

Example: true


meta_description: String!

Meta description for SEO purposes

Translatable

Example: ""


meta_title: String!

SEO-friendly title of the content block

Translatable

Example: ""


published: Boolean!

Whether server thinks content block is published or not (depends on server time)

Example: false


published_at: String

The date and time when the content block was published or null

Example: "2014-09-04T12:23:34Z"

Timestamp (RFC 3339)


raw_content: String!

Raw content of the content block

Translatable

Example: "{}"


title: String!

The title of the content block

Translatable

Example: "Terms of Services"


updated_at: String!

The date and time when the content block was last updated, RFC 3339 format

Example: "2014-09-04T12:23:34Z"

Timestamp (RFC 3339)


Used By

Mutations

contentBlocksCreate, contentBlocksModify

Queries

contentBlocks

Types

ContentBlockExpandableItems, ContentBlockPage, ContentBlockSearchResult, CustomFieldObjects, MenuItem, UnifiedSearchResult

Preview (typescript)

Loading module