getConfigPageByUrl
Getting settings for the page by url.
Description
This method retrieves the settings for a specific page based on its URL (url). It returns a Promise that resolves to a object with page display settings. It returns a Promise that resolves to an IPageConfig object.
Pages.getConfigPageByUrl(
url);
Parameters schema
Schema
url(required): string
Page URL
example: "about"
Examples
Minimal example
const response = await Pages.getConfigPageByUrl('shop');
Example response
{
"rowsPerPage": 1,
"productsPerRow": 1
}
Response schema
Schema: IPageConfig
rowsPerPage: number | null
Number of lines per page.
example: 1
productsPerRow: number | null
Number of products per page.
example: 1