Skip to content

Static pages

Nicolas-B06 edited this page Feb 15, 2022 · 5 revisions

/src/api/static/index.js

Functions

Get datas from a static page

getPageStatic(slug, previewId, lang)
  • slug - string : page slug
  • previewId - string : Preview ID
  • lang - string? : current language ("fr" is the default value) - Optional
Example
import { getPageStatic } from '@aquilacms/aquila-connector/api/static';
const staticPage = await getPageStatic('home', 'previewId', 'fr');

Get a list of static pages

getStatics(PostBody)
  • PostBody - string : PostBody of the query

Clone this wiki locally