Hello Dariusz
What problem are you trying to solve?
If you want to set the value on model in Episerver you can override SetDefaults on the model itself if you want to initialise it when the content is created or use IContentEvents to hook into the content saving/saved events and update your value there.
David
Thank you for the answer David.
My case is to add the calculated property to one of the Block data type which belongs to several Page.
Hooking to the event is one of the solution, but it's complex. If I'd go with the generic solution, I'd have to scan each page if contains given block data type and then assign my calculated property there. Doable, but little but too complex for my needs.
In this case, I need to add HashCode to the block, but there are several other cases I need to have a property with some logic.
My scenario is rather simple:
I'd like to have a Page property that is automatically calculated (e.g. hashcode). I tried to achieve this by several ways but with no success, i.e.:
None of the above works fine, i.e. CMS Editor does not show calculated property. It's just an empty field.
What's the recommended way to achieve that?