Skip to content

TemplateContent

A template’s content: the content of each of its components.

type TemplateContent {
componentContents: [TemplateComponentContent]!
componentPreviews(
contentContext: ContentContextInput
overrideComponentValue: String
specificComponentName: String
targetContentType: String!
): [PreviewedComponentContent!]
id: Guid!
}

The content of each component.

The components rendered to targetContentType, as previews.

The channel and language to preview in. Omitted: the default sales channel and the user’s language, without drafts.

Content to preview in place of the component’s own. Requires specificComponentName.

Only this component, by name. Omitted: every component.

The content type to render the previews to.

The template that the content belongs to.

DocumentTemplate object ● EngagementContentTemplate object ● NotificationTemplate object ● Template interface ● TicketTemplate object