PageList Provider

This provider gives you a list of all static pages in a publication.

Unlike DeskSection or Article, you will get same list every time this component is used.

Only use this list when it is absolutely needed, e.g. in navbars and menus.
slotsDescription
Default
interface {
  /// the pages
  desks: Page[]
}
interface Page {
  id: string
  name: string
  url: string
}

Example:

<template>
  <HeroBlock :block="block">
    <PageList v-slot="{ pages }">
      <!-- content... -->
    </PageList>
  </HeroBlock>
</template>
Edit this page on GitHub Updated at Sun, Nov 20, 2022