how to remove the dashboard window from appearing to any user ?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2013 11:42 AM
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 ?
Labels:
- Labels:
-
Archive
4 REPLIES 4
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2013 12:04 PM
Do you mean dashboard or dashlet? Which dashboard/dashlet is it?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2013 02:21 PM
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:
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.
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.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2013 03:15 PM
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 ?
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 ?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2013 04:16 AM
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.
