AI OnAI Off
Hey,
I don't know how to disable auto updating although that'd be interesting to look into. What you can do though is, like you say, force a full refresh when a property's value changes. In Web Forms you can do that in the code behind of a template which inherits from PageBase<T> or a user control in which you can get ahold of the ASPX in the form of a PageBase<T>.
For instance, in OnLoad for an ASPX you could do this:
PageBase<Article> template = this;
template.EditHints.AddFullRefreshFor(x => x.PageName);
For that to work you need to have FullRefreshPropertiesMetaData control somewhere on your page, preferably in the master page.
<EPiServer:FullRefreshPropertiesMetaData runat="server"/>
Hi,
And Thanks. Will have a look into AddFullRefreshFor(). Would be nice if there was a global setting, regardless property, to refresh the page.
Hi,
Is it possible to disable auto update of the property value after the content has changed, or just re-render the whole page, when editing on page?
Consider following (just an example to illustrate the problem)
When the editor changes the value of PageName from let's say 'Page1' to 'Page2', 'Page2' will be rendered, not just '2' as expected. When the editor reloads the page the Replace function will be called and just '2' will be rendered.
Even worse when we want, lets say, let the editor edit a LinkCollectionList and we doesn't use the EPiServer Property control to render it, instead we use a Repeater and render something completely different from an ul-list. When the editor adds a link everything will be replaced by an ul-list.
How can we handle these cases?