Example of getting a list of portal pages:
const pages = await Namespace.portal.getPages();
Date that the page was created on.
ID of the page.
Date that the page was last updated on.
Page code.
Page name.
Code of the workspace that the portal belongs to.
The value is used to sort the content of the portal page when displaying the list.
Absolute address of the portal page.
Use the getUrl() method.
getUrl()
Get the page’s address based on the company’s alias.
Your review is successfully sent!
Feedback sent successfully
Information about the portal page
Example of getting a list of portal pages:
const pages = await Namespace.portal.getPages();Hierarchy
Properties
__createdAt
Date that the page was created on.
__id
ID of the page.
__updatedAt
Date that the page was last updated on.
code
Page code.
name
Page name.
namespace
Code of the workspace that the portal belongs to.
sort
The value is used to sort the content of the portal page when displaying the list.
url Deprecated
Absolute address of the portal page.
Use the
getUrl()method.Methods
getUrl
Get the page’s address based on the company’s alias.
Parameters
Optional absolute: undefined | false | true
Returns TString
Feedback sent successfully
Thank you for your input