ASPX templates
Version 3.x > ASPX templates > EditableRegion within an ASCX control within the Portal Master page template View modes: 
User avatar
Member
Member
Mufasa - 10/16/2009 2:49:06 PM
   
EditableRegion within an ASCX control within the Portal Master page template
We want to allow the client to easily edit their contact info that shows in the header and footer of their site. But those are included w/ the following:

<%@ Register Src="~/CMSTemplates/CustomASPX/Header.ascx" TagPrefix="Custom" TagName="Header" %>
<Custom:Header ID="Header1" runat="server" />


We do this so they can be re-used for pages that use ASPX templates too. All that works fine.

<cc1:CMSEditableRegion ID="BusinessDays" runat="server" RegionTitle="Business Days" RegionType="TextBox" />


When we add an EditableRegion to the Header.ascx (snippet above), it correctly shows a text box in the CMS Desk to the user on the root node master page, and correctly only read-only mode on the regular sub-pages. However, whenever the user enters any text into that text box and clicks Save, it says "Changes saved" but the text box comes back empty. So, it's not saving the data for that editable region with the page.

Is this even possible with Kentico 3.1a? If so, what am I doing wrong?

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 10/19/2009 3:35:39 AM
   
RE:EditableRegion within an ASCX control within the Portal Master page template
Hello,

the basic problem is that the editable region content relates to document. Each document has a different content for this control so it is not very suitable for header of pages.

I would recommend you to use a different approach for headers. Unless you have an other possibility there is a not very nice workaround how to load the content of editable region from master page to other pages.

Best regards,
Helena Grulichova