Skip to main content

useCmsDocuments

A page of a CMS collection, in options.locale or else the runtime's language.

Kind: React hook
Package: @ovok/core

Import​

import { useCmsDocuments } from '@ovok/core';

TypeScript signatures​

<T extends object = OvokCmsDocument>(collection: string, options?: OvokCmsListOptions): OvokRequestState<OvokCmsPage<T>>
ParameterTypeDetails
collectionstring—
optionsOvokCmsListOptions—

Returns: OvokRequestState<OvokCmsPage<T>>.

Learn the workflow​

Continue with React for the workflow context and examples.

Source​

View the declaration in the SDK source.