AllowedTypes Property (PageTypeAttribute)

Example 

Optional property that limits which page types can be created under a page of this type. If not specified all page types are available.

Syntax

'Declaration
 
Public Property AllowedTypes As Type()
public Type[] AllowedTypes {get; set;}

Example

Only allow news pages to be created under the news list page type.
[PageType("NewsList", "News list", "~/Templates/Pages/NewsListPage.aspx", AllowedTypes = new [] { typeof(NewsPage) })]
public class NewsListPage : CmsPage {
  // Any properties goes here
}

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

This documentation was created using Document! X from Innovasys