Skip to content

PageManager

The class containing Wiki.js page related methods.

Constructor

new PageManager(Client);

Returns a PageManager.

Methods

  • <PageManager>.get(id);
Parameter Type Description Required
id Int ID of the page to get. ✅

Used to get a page by ID from the Wiki.js instance.
Returns: Promise<PageObject>

  • <PageManager>.search(query | queryObject);
Parameter Type Description Required
query String Search string. ✳
queryObject SearchPageQuery Object containing options for search. ✳

✳ Either one is required.
Used to get a page by ID from the Wiki.js instance.
Returns: Promise<PageObject>