1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Nested Master Pages

Nested Master Pages

4 posts, 0 answered
  1. fregas baratis
    fregas baratis avatar
    185 posts
    Registered:
    14 Nov 2002
    03 Jul 2007
    Link to this post
    Are nested master pages supported in the release version of Sitefinity 3.0?  I ask because i thought we had them working in RC2.  However, when I edit a page in the release version SF doesn't show the contentplaceholders in the inner master pages, only the outer.

    Thank you,
    craig
  2. Slavo
    Slavo avatar
    295 posts
    Registered:
    24 Sep 2012
    04 Jul 2007
    Link to this post
    Hi fregas baratis,

    Yes, nested masterpages are supported by the current release of Sitefinity. In order to be able to see all content placeholders, create a template in Sitefinity using the inner masterpage instead of the outer. If you have more than two levels of nesting, use the innermost masterpage to create the template. However, before creating the template, make sure that you have uploaded all necessary files in the App_Master folder using the File Manager. Upload all outer masterpage files and all codebehind files if any, and then create the template with the innermost masterpage file.

    Hope this helps.

    Best wishes,
    Slavo
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Allen
    Allen avatar
    71 posts
    Registered:
    04 Aug 2007
    21 Aug 2007
    Link to this post
    How do you create a nested master page?  This is not supported by .NET so I am curious how you accomplish this?
  4. Slavo
    Slavo avatar
    295 posts
    Registered:
    24 Sep 2012
    21 Aug 2007
    Link to this post
    Hi Allen,

    In fact .NET does support nested masterpages. The outer page is a regular master page with ContentPlaceholder controls. The inner pages are regular pages (note - with a @Page directive on top - not @Master), which also contain ContentPlaceholder controls. Then, you can control the hierarchy using MasterPageFile in the @Page or @Master directive. However, Visual Studio 2005 cannot provide design-time support for master pages. For more information have a look at the following articles:
    http://msdn2.microsoft.com/en-us/library/x2b3ktt7.aspx
    http://www.aspfree.com/c/a/ASP.NET/Creating-a-Nested-Master-Page/


    Best wishes,
    Slavo
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Register for webinar
4 posts, 0 answered