SaaS CMS has officially launched! Learn more now.

Page type property which is read-only in Admin Panel



I'm creating a page type (using PageTypeBuilder) and I call it ProductImagePage.

One property of this class is DownloadCount, which is incremented automatically via code when the Download button is clicked.

How do I set this property to read-only on the admin panel? Come to think of it, can I set and modify its value during run-time and will it persist in the database?

Looking forward for any help I can get. Thanks.

Jun 07, 2011 5:03

If you uncheck the "Visible in Editmode" checkbox, the property will not be visible for Editors/Admins in edit mode.

Jun 07, 2011 8:31

If you're running EPiServer CMS 6 or above I would consider using the dynamic data store for this instead. See for instance this blog post: Using the DynamicDataStore to count file downloads.


Jun 07, 2011 11:47

Thanks Guys. I only have littie time with my EPiServer project so I guess I could explore DDS later.

Jun 09, 2011 2:35
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.