Is it possible to disable the adding gadgets button in the dashboard? I tried to search some extension point, but I found nothing about it...
Hi,
Those actions are currently defined in the xhtml template. To override it and remove the Add gagdet action, you need to override the user_opensocial_dashboard.xhtml template in nuxeo.war/incl/dashboard/ in your own bundle and remove the following line:
Add gagdet
user_opensocial_dashboard.xhtml
nuxeo.war/incl/dashboard/
<a id="addGadgetButton" href="#{baseURL}site/gadgets?language=#{localeSelector.language}">#{messages['label.opensocial.container.add.gadget']}</a>
I tried this way..I modified user_opensocial_dashboard in my bundle, and bind it to the dashboard button with this component
You just need to override the template in your bundle and put the following require in your deployment-fragment.xml to be sure that your template will be deployed after the default one in Nuxeo
require
deployment-fragment.xml
It does not want to work even in this way
Hello, About this question, is it possible to disabled gagdet but keep it for Administrator group ? thanks