contentHelper
contentHelper(
slug
,pkg
?):Promise
<ContentHelperTempResponse
>
A helper function to get the content of a page by its slug.
Parameters
• slug: string
The slug of the page to get the content of. Defined in the PageData table.
• pkg?: string
The package to get the content from. Default is ‘@astrolicious/studiocms’.
Returns
Promise
<ContentHelperTempResponse
>
The data and content of the page.
Example
Defined in
packages/studiocms_core/src/helpers/contentHelper.ts:58