Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > asp:MultiView and CMSEditableRegion View modes: 
User avatar
Certified Developer 8
Certified Developer 8
richard - 2/8/2012 4:46:11 PM
   
asp:MultiView and CMSEditableRegion
I have an ASPX template with a Multiview with a CMSEditableRegion control in each View.

When I edit the text in the Editable region it saves in a single view but when I save content on any of the other views it deletes the text from the Editable regions in the other views.

Is there a work around for this? I think that this thread has a similar issue (http://devnet.kentico.com/Forums.aspx?forumid=41&threadid=7369)

Cheers

Richard

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 2/9/2012 3:29:16 AM
   
RE:asp:MultiView and CMSEditableRegion
Hi,

In your web part's code behind you will need to get the PortalManager (e.g. CMS.PortalControls.PortalHelper.FindManager(System.Web.UI.Control)) and set its property PreserveContent to true, so the content is not overwritten.

Best regards,
Juraj Ondrus

User avatar
Certified Developer 8
Certified Developer 8
richard - 2/20/2012 1:12:07 PM
   
RE:asp:MultiView and CMSEditableRegion
Thanks Jurag

That seems like it should work but unfortunately it doesn't.

I tried to set PreserveContent in the pageload, prerender and on the <cms:CMSPortalManager ID="manPortal" runat="server" EnableViewState="false" PreserveContent="true" /> tag itself.

Cheers

Richard

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 2/21/2012 8:22:59 AM
   
RE:asp:MultiView and CMSEditableRegion
Hi,

I have checked our code and I do not see any reason why it should not work. Could you please post here the exact code you are using so I can reproduce it on my end and check what is going wrong?

Thank you.

Best regards,
Juraj Ondrus