getCmsDocument
A published document of a CMS collection by slug, the shared tenant's when
the tenant has none of its own. Signed out, it is read only with
allowSignedOut and a tenantCode; otherwise it rejects with
SignInRequiredError.
Kind: Function
Package: @ovok/core
Import
import { getCmsDocument } from '@ovok/core';
TypeScript signatures
<T extends object = OvokCmsDocument>(this: OvokClient, collection: string, slug: string, options?: OvokCmsOptions): Promise<T>
| Parameter | Type | Details |
|---|---|---|
collection | string | — |
slug | string | — |
options | OvokCmsOptions | — |
Returns: Promise<T>.
Learn the workflow
Continue with Client Configuration for the workflow context and examples.