PreviewImage Property (PageTypeAttribute)

Example 

Optional property for setting the path to a preview image for the page type. This preview is shown when creating a new page.

Syntax

'Declaration
 
Public Property PreviewImage As String
public string PreviewImage {get; set;}

Remarks

The preview image should be 80 pixels wide and 60 pixels high.

Example

Adding a page type preview image to the article page type.
[PageType("ArticlePage", "Article page", "~/Templates/Pages/ArticlePage.aspx", PreviewImage = "/images/articlepage.png", PageTypeDescription = "Used for articles")]
public class ArticlePageType : CmsPage {
  // Property definitions would then go 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