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

Forums / General Discussions / Lock Template Sections

Lock Template Sections

8 posts, 0 answered
  1. Markus
    Markus avatar
    2763 posts
    Registered:
    25 Nov 2005
    08 Mar 2011
    Link to this post

    Hi there

    I created a master ifle with this code in it:

    <div id="Header">
             <asp:contentplaceholder id="Header" runat="server" />
         </div>
         <div id="Content">
             <asp:contentplaceholder id="Content" runat="server" />
         </div>
         <div id="Footer">
             <asp:contentplaceholder id="Footer" runat="server" />
         </div>

    No i created a template from this master file.

    Since SF 4.0 has this great feature of Layout where users can change the layout I need to look down certain ContentPlaceholder in Pages, but not in Design Templates.

    So after importing the .master I might want to add some text in the Header but don't want the user to be able to change the layout of header later under pages.

    In 3.7 if you added content in the templates the user was not able to add controls there.

    Hope you know what I mean.

    Markus

  2. Boyan Barnev
    Boyan Barnev avatar
    1429 posts
    Registered:
    16 Aug 2017
    09 Mar 2011
    Link to this post
    Hi Markus Berchtold,

    Thank you for contacting Telerik Support.

    The easiest solution would be to set different permissions over the different layout sections, and thus the users who lack proper permissions will not be able to modify them.

    I hope this information helps. Please let me know if I can assist you any further with this service request. Thank you in advance.


    Regards,
    Boyan Barnev
    the Telerik team
  3. Markus
    Markus avatar
    2763 posts
    Registered:
    25 Nov 2005
    09 Mar 2011
    Link to this post
    Dear Boyan

    Thanks for your replay.
     
    a) Am I correct that in order to do this I would have to drag a 100% into my contentplaceholder, since native there are no options to set permissions.

    b) what settings would I have to change to disable the possibility to change anything (see screenshot)

    Markus

    PS: I was trying to have my own masterpage because I don't like the templates to be stored in the DB. But if this is the only way to go, I have to design the templates in SF anyhow.

  4. Boyan Barnev
    Boyan Barnev avatar
    1429 posts
    Registered:
    16 Aug 2017
    11 Mar 2011
    Link to this post
    Hello Markus Berchtold,

    Thank you for getting back to me.

    Yes, you are right that  in order to do this you have to drag a 100% layout into the contentplaceholder and then set the permissions. However, while researching this functionality we found some suspicious behavior related to adding widgets to the layout and logged it as a bug. You can check it in PITS here.

    The settings depend on the span of control you would like to give to your users, and the roles they belong to. In my scenario I have one administrator who has global contorl, so I have restricted all the permissions to Administrators only.

    Regarding your last question, you might still use master pages if you wish to do some fine-tuning to your template, but yes, you do need to add layout elements in Sitefinity to be able to set their permissions accordingly.

    Regards,
    Boyan Barnev
    the Telerik team
  5. Markus
    Markus avatar
    2763 posts
    Registered:
    25 Nov 2005
    11 Mar 2011
    Link to this post
    Thanks Boyan

    I do appreciate your detailed feedback. Can you tell me in what tabel the layouts are saved in the DB?


    Markus

    ---------------------------------------------

    There goes the Queen song again. Try to sing it

    Bum     bum         bum
    Another one finds a bug

    bum       bum        bum
    Another one finds a bug

    http://www.youtube.com/watch?v=rY0WxgSXdEE



  6. Boyan Barnev
    Boyan Barnev avatar
    1429 posts
    Registered:
    16 Aug 2017
    11 Mar 2011
    Link to this post
    Hi Markus

    You should look in [sf_object_data] table where [content_id] is Telerik.Sitefinity.Web.UI.LayoutControl

    It was pleasure for me to assist you. Wish you a great day.

    Regards,
    Boyan Barnev
    the Telerik team
  7. Stacey
    Stacey avatar
    291 posts
    Registered:
    18 Oct 2012
    19 Aug 2011
    Link to this post
    Has anything changed in 4.2 in regard to setting layout element permissions?  I cannot find where that interface is.

    I have looked through all the sections I can think of, checked the global permission areas and checked on the layout elements themselves.  The closest thing I found was widget permissions, but I have seen people posting screenshots of Layout Element permissions.


      I have a separate thread asking how this is being done in the Intranet starter kit as I noticed they dropped a 100% layout element into a placeholder.  I get errors when I try to view permissions on that starter kit and am wondering if something might have been taken out in 4.2 that would cause an issue if there had previously been permissions set on a layout element in an earlier version.

  8. Boyan Barnev
    Boyan Barnev avatar
    1429 posts
    Registered:
    16 Aug 2017
    22 Aug 2011
    Link to this post
    Hi Stacey,

    Thank you for getting back to me. That's a tough one, in Sitefinity 4.2 you'll be able to set permissions on who will be able to "Add widgets and layout elements to the page and its child pages" , however permissions per layout element is a whole feature that will be implemented for one of the future releases. Please excuse us for the inconvenience, if any has been caused.

    Regards,
    Boyan Barnev
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

8 posts, 0 answered