NOTE: If you are using Sitefinity CMS 6.3 or below go to Pages (6.3 and below).
This section provides you with an overview of the Pages API in Sitefinity CMS and guides you through the common tasks when working with pages.
Sitefinity CMS back-end provides you with a user-friendly interface to create pages. You can also create pages programmatically using the Native or Fluent APIs.
Sitefinity CMS uses page nodes for the pages organization. When you create a page, you must attach it to a page node. You can create pages for the front-end or the back-end. When you create a page for the back-end you must add it to the taxonomy organizing the back-end navigation. When you create a page for the front-end, you must add it to the taxonomy organizing the public pages. Pages, created through the API or the UI, are saved in the database.
PageNode defines where the page is located in the navigation (the sitemap). The PageData is the content of the page. You can have a PageNode withoutPageData, for example, a group page or a redirecting page. You cannot create PageData without aPageNode. PageData is subject to content lifecycle and workflow.
Since version 7.0 the metadata information which was previously located in PageData is now located in PageNode. There is only one node containing the metadata and the page data items (one item per language). This improvement removes the limitations of the page tree structure. Therefore, it is now possible to have split and synchronized pages in all levels of the page tree. Previously, only split pages could be created under a split page. For more information on the API breaking changes check API changes in Sitefinity CMS 7.0.
To manage pages through Pages Native API, you must add the following namespaces to your class:
To manage pages through Pages Fluent API, you must add the following namespaces to your class:
The following scheme shows the page components:
You define the appearance and style of the page by setting a template and a theme. For more information about themes, see Overview: Themes. You use the template to define placeholders, background images and control styles. For more information about setting template to a page, see For developers: Apply page templates.
You define the functionality of the page by adding widgets. For more information about controls, see Overview: Built-in widgets.
Sitefinity CMS allows you to use the following types of controls:
For more information about managing controls in a page, see For developers: Add and remove widgets from pages.
Back To Top