Refreshing info after page edit

Vote:
 

Hi, I'm working on an upgrade of a site from CMS 6 to CMS 7.5.

Some pages present information that is compiled from several properties on the page (and other pages) and therefore I can't use the EPiServer:property tag.
When I publish changes in the GUI there is no full page reload. The page view seems to be updated with javascript and that works fine for all data presented in EPiServer:property tags. But my custom data will keep it's old value until I reload the page manually.

Is there any way around this?

Thanks!
Martin

 

#141058
Nov 09, 2015 10:08
Vote:
 

Addition: This is a Web Forms solution.

/Martin

#141060
Nov 09, 2015 10:23
Vote:
 

Hi,

I never use it, but you could try to use FullRefreshPropertiesMetaData control.

In OnLoad event add all properties that should refresh the content:

protected override void OnLoad(System.EventArgs e)
        {
            base.OnLoad(e);

this.EditHints.AddFullRefreshFor(p=>p.UniqueSellingPoints);
        }

Then place the control on you form template:

<EPiServer:FullRefreshPropertiesMetaData runat="server" />

The control will read all properties registered in AddFullRefreshFor method.

#141100
Nov 09, 2015 20:15
Vote:
 

Thanks Grzegorz! That worked great.

Martin

#141111
Nov 10, 2015 10:44
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* 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.