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

Forums / Designing with Sitefinity / Nested Master Pages and Edit Containers

Nested Master Pages and Edit Containers

8 posts, 0 answered
  1. Allen
    Allen avatar
    71 posts
    Registered:
    04 Aug 2007
    19 Dec 2008
    Link to this post
    Is there a way to prevent an asp:contentplaceholder from being a drop container?  For example, I have nested master pages (base and layout) to help with various layouts (e.g. Full page, 2 column, etc.) that have consistent headers and footers.  When I upload my layout "child" master pages, I want to prevent SiteFinity from recognizing my base master page's placeholder tags so that controls can only be placed in the "child" master pages' placeholder containers.  Any suggestions?
  2. Pepi
    Pepi avatar
    981 posts
    Registered:
    28 Oct 2016
    19 Dec 2008
    Link to this post
    Hello Allen,

    Sitefinity does not provide an option to disable the parent ContentPlaceHolders in Sitefinity administration. As a workaround I would suggest you use Overlay edit mode instead of Classic. In this mode the user cannot drag and drop controls into the placeholders of the parent.

    Kind regards,
    Pepi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Jeff
    Jeff avatar
    27 posts
    Registered:
    18 Jun 2008
    11 Feb 2009
    Link to this post
    Just curious if this will ever become a reality within a future release of Sitefinity. Using nested master pages works well from a developer standpoint, but gets rather confusing to the people working with the templates in Sitefinity. It's not hard to tell the content editors which "zones" to drop their controls in depending on which template they're using, but as the site increases in size and the number of master pages being used gets larger having them remember which zone gets more and more complicated.

    Seems we have to sacrifice end user ease of use for site maintainability.
  4. Jeff
    Jeff avatar
    27 posts
    Registered:
    18 Jun 2008
    11 Feb 2009
    Link to this post
    Oh, I forgot to mention that even when using overlay mode instead of classic the users can still select the wrong container from the container list on the right in the toolbox.
  5. Allen
    Allen avatar
    71 posts
    Registered:
    04 Aug 2007
    11 Feb 2009
    Link to this post
    I agree with Jeff in that it isn't user friendly for the nested masterpages.  It does work and I absolutely use them regularly.  However, I have a situation where the overlay mode prevents ALL drag-n-drop...I don't know why.  Still, it would be great for SiteFinity to add the ability to "lock" nested content tags.  I realize that this may be technically difficult, but it would be great.
  6. Jeff
    Jeff avatar
    27 posts
    Registered:
    18 Jun 2008
    11 Feb 2009
    Link to this post
    Yeah, I use nested master pages on another website I work on that uses the Sitefinity Community Edition. Trying to get my work website to start using them as well with the full version of Sitefinity since they are so much easier to maintain versus the 7+ templates we have right now.

    As for your problem with overlay mode, I had the same problem with my nested master pages back when I first started using this. I think I fixed it by checking over my CSS for any style conflicts and rebuilt the templates from the ground up. Might want to try viewing the site within Firefox and grab their developer tools for the browser. I also rebuilt the project using a fresh copy of Sitefinity to make sure I didn't screw something else up.

    Here's the list of Firefox add-ons I'm using:
    Firebug
    HTML Validator
    Web Developer Toolbar

    Thankfully my website was still small back then so it was only a minor inconvenience.
  7. Allen
    Allen avatar
    71 posts
    Registered:
    04 Aug 2007
    11 Feb 2009
    Link to this post
    Jeff,

    Yep.  I don't use the templates from SiteFinity as most of my projects require or already have very specific designs.  Additionally, I do use Firebug and even the IEDeveloper toolbar religiously.  My assumption with the overlay is that it isn't neccisarily always an option (or free from problems itself). 

    Anyway, my only point was that it would be great to be able to lock down the parent content controls as extra insurance as the overlay isn't a guarantee.

    Have a great day!
  8. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    12 Feb 2009
    Link to this post
    Hi Allen,

    We haven't worked recently in that area, but will make some improvements in the future. We certainly keep these issues in mind.

    Greetings,
    Georgi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Register for webinar
8 posts, 0 answered