cancel
Showing results for 
Search instead for 
Did you mean: 

Push dashlets to users?

gronfelt
Champ in-the-making
Champ in-the-making
Is there a way to push out dashlets to user dashboards, so that a new dashlet can be added to every users dashboard? Where is the dashboard configuration saved, is it stored in a db table or the contentstore, or someplace else?
5 REPLIES 5

jpfi
Champ in-the-making
Champ in-the-making
hi,
dashboard-config as all Share component & pageconfiguration is saved in an AVM store (called sitestore) within alfresco repo. The config is saved as XML to d:content prop of these AVM-nodes.
So it is possible to implement  some JavaScript code to modify all user-dashboard configs.
cheers, jan

a_thakur
Champ in-the-making
Champ in-the-making
The dashboard defaults can be found in the file Presets.xml
This file is located far under the WEB-INF folder and I do not have a installation near hand right now to give you the exact part.

You can extend this preset obviously, so i think this will help you a bit.

Cheers

jpfi
Champ in-the-making
Champ in-the-making
hi,
jub, but changing presets (inside of site-data/presets) does only work if the user doesn't have a dashboard config. It is used as default value when user first visits his dashboard.
Cheers, jan

a_thakur
Champ in-the-making
Champ in-the-making
Oh right, in that case I misread.
Good question, would like to know if there is a way aswell.
Sorry I can't help more.

Regards,
A.Thakur

gronfelt
Champ in-the-making
Champ in-the-making
hi,
dashboard-config as all Share component & pageconfiguration is saved in an AVM store (called sitestore) within alfresco repo. The config is saved as XML to d:content prop of these AVM-nodes.
So it is possible to implement  some JavaScript code to modify all user-dashboard configs.
cheers, jan

I've begun looking in to this, and I've located the proper nodes in avm://sitestore.

However, I don't really understand where to implement the javascript, as I understand it scripts in the Data Dictionary can be applied to documents or folders, but in this case I'd rather run the script without any particular context and use the AVM API methods to retrieve the proper sitestore nodes and perform node methods on them. How can I do that?

(I'm sorry if this appears somewhat confused, but I'm pretty much a novice when it comes to programming in general an programming Alfresco i particular).