November Happy Hour will be moved to Thursday December 5th.

Page type property which is read-only in Admin Panel

Vote:
 

Hi,

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.

#51380
Jun 07, 2011 5:03
Vote:
 

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

#51381
Jun 07, 2011 8:31
Vote:
 

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.

Frederik

#51391
Jun 07, 2011 11:47
Vote:
 

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

#51452
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.