Example of getting a list of portal pages:

const pages =  await Namespace.portal.getPages();

Hierarchy

  • PortalPageInfo

Properties

__createdAt

__createdAt: TDatetime

Date that the page was created on.

__id

__id: TString

ID of the page.

__updatedAt

__updatedAt: TDatetime

Date that the page was last updated on.

code

code: TString

Page code.

name

name: TString

Page name.

namespace

namespace: TString

Code of the workspace that the portal belongs to.

sort

sort: number

The value is used to sort the content of the portal page when displaying the list.

url

url: TString

Absolute address of the portal page.

deprecated

Use the getUrl() method.

Methods

getUrl

  • getUrl(absolute?: undefined | false | true): TString
  • Get the page’s address based on the company’s alias.

    Parameters

    • Optional absolute: undefined | false | true

      Return an absolute path (the default value is false).

    Returns TString