cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing userhome from share dashlet

cybertoast
Champ in-the-making
Champ in-the-making
In Share I'm trying to add the user's home folder, which is automatically created in /alfresco. But the userhome variable in my dashlet javascript always returns undefined or null. How can I access the current user's home folder (i.e., default storage space) and show the documentlibrary page for it?

I've checked the Javascript cookbook and it seems to be missing some crucial information related to /share.
8 REPLIES 8

pqr
Champ in-the-making
Champ in-the-making
In alfresco Share. you cant directly access alfresco repository,
One option may be, create a webscript which uses "userhome" in Alfresco, and it returns .json response and use that in alfresco share using remote object

mikeh
Star Contributor
Star Contributor
That's correct - Share doesn't sit on the Repository, so therefore doesn't have direct access to nodes. The model is to create a REST API using webscripts to return the information you need in JSON format and consume that in the Share client.

Thanks,
Mike

cybertoast
Champ in-the-making
Champ in-the-making
Is there an example of this somewhere that I can use to start from? This actually seems like a very basic feature that should be included in Alfresco. I'm a bit startled that accessing the user's space is not something built-in to share (especially given that I've been told that Share is really where everything is going and is the recommended interface for end-users - this at the DC meetup, talking to a couple of the Alfresco engineers).

Thanks much MikeH - a few samples would probably help me quite a bit. I'll put anything I can get working back into the wiki as well.

mikeh
Star Contributor
Star Contributor
Share is very much based on a "Sites and Site Members collaborating on content" structure rather than individual users having their own space. However, we realise that people like the user-approach, so are working to provide a "Repository Document Library" to allow access to non-Site content in the short term.

One other approach you could consider is to create a Site for each user and set their homespace to the documentLibrary container, for example. This may or may not fit your need and would also require some development effort from yourself in order to implement.

Thanks,
Mike

pqr
Champ in-the-making
Champ in-the-making
I also faced lot problems to start with same thing,
so I have started my blog, I have posted same entry, you can refer it.

http://niketa-alfresco3.blogspot.com/2009/12/how-to-access-alfresco-repository-in.html

cybertoast
Champ in-the-making
Champ in-the-making
pqr, that's an excellent resource. Really helpful to newbies I think, and it should be included in the Alfresco wiki. It was initially very confusing to me to understand how the Alfresco webscript interacted with the Share webscripts. Thanks much for posting.

mikeh
Star Contributor
Star Contributor
…it should be included in the Alfresco wiki…
Absolutely - we'd love for more people to contribute samples and tutorials to the Alfresco Wiki.

Thanks,
Mike

pqr
Champ in-the-making
Champ in-the-making
Smiley Happyok
I would post it on alfresco wiki
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.