getConfigPageByUrl
Getting settings for the page
Pages.getConfigPageByUrl(url)
const value = await Pages.getConfigPageByUrl('shop')
Schema
url:* string
Page URL
example: shop
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.
Example return:
{
"rowsPerPage": 10,
"productsPerRow": 10
}
Schema
rowsPerPage: number
Number of rows per page
example: 10
productsPerRow number
Number of products per row
example: 10