Technical support This forum is closed.
Version 1.x > Technical support > MasterPages and CMSEditableRegion View modes: 
User avatar
Member
Member
rheiser - 12/22/2005 6:01:33 PM
   
MasterPages and CMSEditableRegion
I just implemented master pages and the interface inheritance works great. My problem is when I use the control CMSEditableRegion it will only display in view mode. Even if I am logged in as administrator through the cmsdesk. How can I get the CMSEditableRegion to work with Master Pages?

Thanks,
Rob

User avatar
Member
Member
rheiser - 12/22/2005 10:46:36 PM
   
Re: MasterPages and CMSEditableRegion
I have also noticed that the CMSSearchDialog control events do not get raised in MasterPages. I can manually set the property of SearchExpression and get results but I can not use the CMSSearchDialog control to work within the MasterPage. Has anyone else ran into this problem and how did you solve the MasterPage implementation?

User avatar
Guest
admin - 12/27/2005 5:15:00 PM
   
Re: MasterPages and CMSEditableRegion
Hello,

Thank you for your post. Could you please post here your configuration of controls (and where they are placed - in the master page or in the content page)? Or you can alternatively send the code of your pages to support@kentico.com.

Thank you.

Best Regards,

User avatar
Member
Member
Andre van der Hoeven - 1/26/2006 11:31:33 AM
   
Re: MasterPages and CMSEditableRegion
Hi Petr,
I'm using WilsonMasterPages in .NET 1.1 and would like to use CMSEditableRegions in content regions. Since this didn't work I tried to put a CMSEditableRegion in a ascx, which is about the same. This only works when you put the CMSPageManager in there with it. But what if you want to have a CMSEditableRegion in the aspx or another ascx? More than one CMSPageManager doesn't work either. Am I doing somethig wrong or do you plan to fix this?
Thanks,
Andre

User avatar
Guest
admin - 1/26/2006 4:39:23 PM
   
Re: MasterPages and CMSEditableRegion
Hi Andre,

Thank you for your post. Unfortunately, the master pages in .NET 1.1 are not supported in Kentico CMS, you can only use them with standard ASP.NET 2.0 master pages. The reason is that the structure of controls and their ID's are different if you use master pages and since there's no standard for master pages in .NET 1.1, we cannot create a solution that would work in all cases.

The editable regions cannot be placed in a user control becuase they are encapsulated in another control then. We will try to fix this in 1.8b. Still, placing an editable region into a user control doesn't make much sense since the content of the editable region is tightly connected with currently edited page.

If you need to share content over several pages (typically for header or for a right column of pages in a specific site section), you should create an article (such as "/logo" or "/products/rightcolumn") and display this article using a CMSViewer control that can be placed on some user control (header.ascx, rightcolumn.ascx, etc.) that is shared over pages.

Please let me know if you need any further details.

Best Regards,

User avatar
Member
Member
Andre van der Hoeven - 1/31/2006 2:09:57 PM
   
Re: MasterPages and CMSEditableRegion
Hi Petr,
I don't want to share content over several pages but reuse functionality. An editable region is part of that functionality and the content in this region is specific to the currently edited page.
Seems like ASP.NET 2.0 is the path to follow...
Thanks,
Andre

User avatar
Guest
admin - 12/27/2005 5:13:28 PM
   
Re: MasterPages and CMSEditableRegion
Hello,

Thank you for your message. Unfortunately, the editable regions didn't work correctly in 1.7b and in the first release of 1.8. You may need to download and use the fix from http://www.kentico.com/downloads/updates/kenticocms_1_8_fix1.zip.

Then, you need to place the CMSPageManager into the master page and CMSEditableRegion to the content page.

Best Regards,