ASPX templates
Version 4.x > ASPX templates > Web Part using asp:MultiView and CMSEditableRegion View modes: 
User avatar
Member
Member
greg.storm-guardianpayments - 3/13/2009 1:29:35 PM
   
Web Part using asp:MultiView and CMSEditableRegion
I have a control running on my existing Website that I want to use as I build my site in Kentico 4. I placed the MultiView control in a Web Part and am trying to use that Web Part on the Blank page template within the portal. My navigation for each asp:View is a combination of asp:LinkButtons and Javascript.

Within in the portal, I can navigate to the 1st View of my MultiView, and I can enter text in the CMSEditableRegion control for that View. When I navigate to any of the other Views, I see the title of the corresonding CMSEditableRegion, but I can't enter any text in the region.

My MultiView looks like:

<asp:MultiView ID="mview1" runat="server">
<asp:View ID="view1" runat="server">
<h1>View1</h1>
<cms:CMSEditableRegion ID="cmsEditView1" RegionTitle="View 1" RegionType="HtmlEditor" runat="server" />
</asp:View>
<asp:View ID="view2" runat="server">
....
</asp:View>
</asp:MultiView>


User avatar
Kentico Support
Kentico Support
kentico_jurajo - 3/17/2009 4:01:13 AM
   
RE:Web Part using asp:MultiView and CMSEditableRegion
Hi,

Unfortunately the MultiView and Editable regions are not working correctly due to some problems with output filter. This problem should be fixed in version 4.1. I am sorry for the inconvenience.

Best Regards,
Juraj Ondrus

User avatar
Member
Member
greg.storm - 3/17/2009 2:45:12 PM
   
RE:Web Part using asp:MultiView and CMSEditableRegion
Thanks for that information. All I really want to do is have multiple EditableRegions on one page (Web part), and to be able to display/hide those based on user navigation. Can you please suggest a way I can do that?

I quickly mocked up an attempt using <div> instead of <asp:MultiView>, but it doesn't seem to work in the portal either. It looked something like this:

<div id="div1" runat="server">
<h1>Div1</h1>
<cms:CMSEditableRegion ID="div1_overview" RegionTitle="Div1 overview" RegionType="HtmlEditor" runat="server" />
</div>
<div id="div2" runat="server">
<h1>Div2</h1>
<cms:CMSEditableRegion ID="div2_overview" RegionTitle="Div2 overview" RegionType="HtmlEditor" runat="server" />
</div>

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 3/18/2009 10:31:31 AM
   
RE:Web Part using asp:MultiView and CMSEditableRegion
Hi,

To achieve this you can use two editable region web parts with their own layout and you can override e.g. the OnContentLoaded() method (event) and check for the URL where the user is and according to this you can display/hide appropriate editable region. I hope it makes sense.

Best Regards,
Juraj Ondrus