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

Forums / Suggestions / Widgets - Can you hide them from users?

Widgets - Can you hide them from users?

5 posts, 0 answered
  1. Tanya
    Tanya avatar
    5 posts
    Registered:
    19 Nov 2013
    20 Nov 2013
    Link to this post
    Does anyone know if there is a way to hide the widget editor from certain roles?
    I have been able to add permissions so users are unable to drag and drop them onto a page, but I would rather hide that feature instead of disabling.  I only want the administrators to be able to add widgets and layouts.

    Thanks
  2. Junior Dominguez
    Junior Dominguez avatar
    115 posts
    Registered:
    23 Sep 2016
    21 Nov 2013
    Link to this post
    Hello Tanya,
    In order to disable specifics widgets to specific roles, you can follow this instructions:

    1) Go to Administration->Settings and click the Advanced settings link.

    2) Locate the Toolboxes section in the list and navigate to ContentToolboxSection. You will see all the different sections corresponding to the widget toolbox inside of ContentToolboxSection->Tools  as shown in the following image




    3) For each section you want to disable, define a parameter with key "DisallowedRoles" . The value field will have the list of Roles you want to disable (separated by comma),  as shown in the following picture.



     

    4) Put the files Global.asax and Global.asax.cs (zipped and attached to this message) in the root of your Sitefinity website.


    Regards,
    Junior Dominguez
    Telerik
    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
  3. Tanya
    Tanya avatar
    5 posts
    Registered:
    19 Nov 2013
    21 Nov 2013 in reply to Junior Dominguez
    Link to this post
    Thank you. I'm a little hesitant to open a .zip file and install it on our server.  What does that file contain?  Thanks,.
  4. Markus
    Markus avatar
    2763 posts
    Registered:
    25 Nov 2005
    22 Nov 2013 in reply to Tanya
    Link to this post
    Dear Tanya

    4) Put the files Global.asax and Global.asax.cs (zipped and attached to this message) in the root of your Sitefinity website. 

    So I would assume there is a Global.asax and Global.asax.cs file in it :-)

    But you are right. It could be that you have your own global.asax file already with some stuff in it and it would make sense to save the ziped files outside your project and compare your global asax and the one from telerik to see the differences and merge them when/where needed.

    @Telerik
    It's good that you have such a feature but I assume no one would actually know how to do it if you even have to change your global asax.

    So would it be possible to add the DissallowedRoles by default with either no value so this would be in place already and add some help text instructing us on how we have to change the .asax.

    Me for now I know that this is possible thanks to this thread. But if I ever need it in 6 month I will spend 10 - 20 min searching for this thread again.

    Markus
  5. Webmaster
    Webmaster avatar
    1 posts
    Registered:
    11 Oct 2013
    10 Mar 2014
    Link to this post

    The zip file appears to be missing.  Can it be reposted? Has the solution to the problem changed?

     Thanks,

    Dan

5 posts, 0 answered