API Reference: PageAttribute Class
The PageAttribute
can be applied to content model classes. The attribute specifies that the content model type represents a Page node in a Site node collection. Content models decorated with a PageAttribute
can only be added to Site node collections.
If PageAttribute
is not specified on a content model, and no other node type attributes have been set either, this content model is available for use only as a nested content model. See content models for an explanation of different content model node types.
Usage
Decorate the content model class with the PageAttribute
. The attribute does not require any parameters. The attribute is inherited, so if you have decorated this attribute on a base class of this model, the derived class is also considered a Page node type by default.
Example
The following example specifies that a content model of type ContentPage
can be used for Page nodes in a Site node collection.
[Page]
public class ContentPage: BasePage
{
// ...
}