More in this section

Forums / General Discussions / Make SF not use Masterpage ContentPlaceHolder

Make SF not use Masterpage ContentPlaceHolder

7 posts, 0 answered
  1. Damian
    Damian avatar
    27 posts
    Registered:
    01 Dec 2010
    02 Mar 2011
    Link to this post
    When using a master page as a template, sitefinity shows all ContentPlaceHolders on the master page as areas where users can drop widgets.  Is there any way to prevent this for certain ContentPlaceHolders?

    We have nested master pages.  When using the inner master page as a template, we see content placeholders from the outer master pages as widget drop areas.  This is not desired.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    03 Mar 2011
    Link to this post
    Hello Damian,

    You can use layout elements. On each layout element you can set permissions, so you can allow whether a group of users will be able to use this holder to drop control or not.

    Greetings,
    Ivan Dimitrov
    the Telerik team
  3. Damian
    Damian avatar
    27 posts
    Registered:
    01 Dec 2010
    03 Mar 2011
    Link to this post
    That sounds like what I need.  Could you give me a hint on how to set the layout permissions?
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    04 Mar 2011
    Link to this post
    Hi Damian,

    I attached a short video.

    Best wishes,
    Ivan Dimitrov
    the Telerik team
  5. sacparker
    sacparker avatar
    14 posts
    Registered:
    21 Mar 2007
    14 Mar 2011
    Link to this post
    It seems like you can control a users ability to add items to the layout but if that layout is inside of a ContentPlaceHolder they are still able to drop widgets in the ContentPlaceHolder.

    Is there any way to block users from dropping widgets on pages into a ContentPlaceHolder?
  6. Chris
    Chris avatar
    1 posts
    Registered:
    20 Jun 2011
    16 Dec 2011
    Link to this post
    I would very much like to know how to do this as well. It'd be good if you could have a template only content placeholder type control so widgets can only be dragged into it when editing the template.
  7. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    19 Dec 2011
    Link to this post
    Hello,

    Currently this is not supported scenario and it would be hard to make it working because all data is set by ZoneEditor script. One possible option wold be returning null inside its _getPlaceholderPermissions

    Kind regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
7 posts, 0 answered