Pages
Kotlin Multiplatform
Get all pages
Hierarchy
OneEntry CMS has a mechanism of page nesting, which allows creating groups and content hierarchy.
Get all top-level pages
Top-level pages are pages that do not have a parent (parentId = null
).
Get all child pages
Child pages are pages that are not the first in the hierarchy (parentId ≠ null
). To retrieve them, you need to know the parent's url
.
Get a page
Each page object has its identifier (id
) and link (url
). With them, you can get an object with all the necessary information.
By identifier
By link
Get blocks attached to the page
Blocks attached to the page can be obtained by knowing its url
.
Get page configuration
Page configuration is customized in CMS and mainly contains pagination information.
Search pages
Pages can be found by knowing their titles.
Swift
For convenience, the service has been moved to a separate variable.
Get all pages
Hierarchy
OneEntry CMS has a mechanism of page nesting, which allows creating groups and content hierarchy.
Get all top-level pages
Top-level pages are pages that do not have a parent (parentId = null
).
Get all child pages
Child pages are pages that are not the first in the hierarchy (parentId ≠ null
). To retrieve them, you need to know the parent's url
.
Get a page
Each page object has its identifier (id
) and link (url
). With them, you can get an object with all the necessary information.
By identifier
By link
Get blocks attached to the page
Blocks attached to the page can be obtained by knowing its url
.
Get page configuration
Page configuration is customized in CMS and mainly contains pagination information.
Search pages
Pages can be found by knowing their titles.