Try Now
More in this section

Forums / Developing with Sitefinity / Placeholder in Root Layout using MVC

Placeholder in Root Layout using MVC

2 posts, 0 answered
  1. Jeff
    Jeff avatar
    0 posts
    27 Jun 2016
    27 Jul
    Link to this post

         I am using MVC for my layout templates. I have placeholders in both the root and the nested templates. I am able to add content to the placeholders when creating a page. But when I view those pages the content is not inserted.

    Here is an example of my templates.


          <div class="sfPublicWrapper" id="PublicWrapper">


        Layout = "~/Mvc/Views/Shared/AssociateRoot.cshtml";
    <div>More Content</div>

    Any content put in the Footer placeholder or the navigation placeholder is not displayed. Any content placed in ModalContent or InnerContent does display. No errors are received that I can see.

  2. Victor Leontyev
    Victor Leontyev avatar
    65 posts
    01 Jul 2014
    27 Jul in reply to Jeff
    Link to this post
    Hi Jeff. Nesting and placeholders working really bad together. You can check similar thread: http://www.sitefinity.com/developer-network/forums/project-feather/nested-layouts-not-working-with-section-helpers
2 posts, 0 answered