PreviewImage Property (PageTypeAttribute)
KalikoCMS.Attributes Namespace > PageTypeAttribute Class : PreviewImage Property |
Optional property for setting the path to a preview image for the page type. This preview is shown when creating a new page.
Syntax
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