Tag: episerver

在EventsPublishedContent期间更新ReadOnly属性

首先,我想在我的页面类型中添加一个只读类型属性,这可能吗? 我想要的是一个字符串属性,可以通过编程方式更新,但不能通过UI更新,我希望内容编辑器能够看到值但不能更改它。 假设可以在发布事件期间如何更新此属性值。 那我怎么…… private void EventsPublishedContent(object sender, ContentEventArgs e) { if (e.Content is MyPageType) { var myvalue = BussinessLogic.PerformAction(e.content) //Now I want to save myvalue on to a property in //e.content.myProperty } }