Widgets - Can you hide them from users?

Posted by Community Admin on 05-Aug-2018 16:59

Widgets - Can you hide them from users?

All Replies

Posted by Community Admin on 20-Nov-2013 00:00

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

Posted by Community Admin on 21-Nov-2013 00:00

Thank you. I'm a little hesitant to open a .zip file and install it on our server.  What does that file contain?  Thanks,.

Posted by Community Admin on 22-Nov-2013 00:00

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

Posted by Community Admin on 10-Mar-2014 00:00

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

 Thanks,

Dan

Posted by ayadagir on 08-Aug-2018 01:09

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

This thread is closed