Pages

This section provides you with an overview of the Pages API in Sitefinity and guides you through the common tasks when working with pages.

Sitefinity 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 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.

The section contains the following:

To manage pages through Pages Native API, you must add the following namespaces to your class:

using Telerik.Sitefinity.GenericContent.Model;
using Telerik.Sitefinity.Modules.Pages;
using Telerik.Sitefinity.Pages.Model;

To manage pages through Pages Fluent API, you must add the following namespaces to your class:

using Telerik.Sitefinity;
using Telerik.Sitefinity.GenericContent.Model;
using Telerik.Sitefinity.Pages.Model;

Page components

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 Working with themes. You use the template to define placeholders, background images and control styles. For more information about setting template to a page, see Setting template to page.

You define the functionality of the page by adding controls. For more information about controls, see Working with controls.

Sitefinity allows you to use the following types of controls:

  • Built-in Sitefinity controls

    You can use the controls that Sitefinity backend provides you. For example, Content block, Blog Posts, News, Events.

  • Standard ASP.NET controls

    You can use standard ASP.NET controls. For example, Hyperlink, Label, GridView, ObjectDataSource.

  • User controls

    You can use custom developed ASP.NET user controls. For a detailed step-by-step tutorial on creating controls, see How to create a NewsRotator control.

  • Custom controls

    You can use custom developed ASP.NET server controls. For a detailed step-by-step tutorial on creating controls, see How to create a NewsRotator control.

  • Module controls

    You can use custom module controls that represent the frontend functionality of the module. For more information about modules, see Working with modules.

  • Telerik RadControls for Silverlight

    You can use Telerik RadControls for Silverlight by wrapping them in an ASP.NET control. For a detailed step-by-step tutorial on creating Silverlight-based controls, see How to create a CoverFlow control.

For more information about managing controls in a page, see Adding and removing controls.

Related topics:

Feedback

How useful is this article?

Tell us more

Submit
Your message was successfully sent.

We appreciate your feedback.

Your message could not be sent.

OK