More in this section
Forums / Developing with Sitefinity / Placeholder in Root Layout using MVC

Placeholder in Root Layout using MVC

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Jeff
    Jeff avatar
    0 posts
    27 Jun 2016
    27 Jul 2016
    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 2016 in reply to Jeff
    Link to this post
    Hi Jeff. Nesting and placeholders working really bad together. You can check similar thread:
2 posts, 0 answered