Static pages - AquilaCMS/aquila-connector GitHub Wiki

/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
⚠️ **GitHub.com Fallback** ⚠️