cancel
Showing results for 
Search instead for 
Did you mean: 

how to remove the dashboard window from appearing to any user ?

himfire
Champ in-the-making
Champ in-the-making
I'm using Alfresco 4.2c and there is a dashboard that appear to me , and I want to remove it from appearing to other users , because there is some button I don't want it to appear to other users , so I need to remove it from all user . How can I use it ?




4 REPLIES 4

ddraper
World-Class Innovator
World-Class Innovator
Do you mean dashboard or dashlet? Which dashboard/dashlet is it?

zladuric
Champ on-the-rise
Champ on-the-rise
Besides from removing the whole dashboard (or dashlet, as Dave says), you could only remove this button.

Ie. put in your freemarker something like this:
<#if user.name == "admin">   <input type="button" id="${args.html}-my-button" value="Clickme!"/></#if>‍‍‍‍‍


That way the button will only be rendered to the admin user. You could make even smarter check, ie only for somebody in a group.

You should still check in the resulting action of the button click if the user clicking it is the authorized user, to prevent potential security issues though.

himfire
Champ in-the-making
Champ in-the-making
thanks for the reply ,,

what I mean is when I login to alfresco , there is a yellow window appear to me , and written on it "Welcome to your dashboard " , I need to remove this window . how can I do it ?

ddraper
World-Class Innovator
World-Class Innovator
That banner is controlled via the dynamic-welcome WebScript (/Slingshot/config/alfresco/site-webscripts/org/alfresco/components/dashlets/dynamic-welcome.get.html.ftl in the source) and in particular whether or not the dashlet is shown is controlled by the "showDashlet" value in the model. There are a couple of options available to you here… if you're working in a completely clean environment (e.g. you don't already have any users) then you could modify the dashboard preset so that the "full-width-dashlet" region is removed - then the Component wouldn't have anything to bind to, or alternatively you could create an extension module to dynamically remove that region or to extend the JS controller for the WebScript so that the "showDashlet" value in the model is always set to false.