Set site favorites
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-14-2010 04:28 PM
I figured this should be easy, but I can seemed to see an answer.
it was requested that when a user is added to a site the site would be added to the users Favorites.
Seemed simple, but I can't find it in any of the API's.
can anyone give me a pointer on how I would update the site as a favorite when it's added ?
Thanks
it was requested that when a user is added to a site the site would be added to the users Favorites.
Seemed simple, but I can't find it in any of the API's.
can anyone give me a pointer on how I would update the site as a favorite when it's added ?
Thanks
Labels:
- Labels:
-
Archive
4 REPLIES 4
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-14-2010 05:57 PM
I've already added it to v3.4
Thanks,
Mike
Thanks,
Mike
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-14-2010 06:50 PM
I've already added it to v3.4
Thanks,
Mike
So I can't do it in 3.3G but I can in 3.4 ?
I tried to do a post call
http://localhost/share/proxy/alfresco/api/people/a447738/preferences
Response body
{"org":{"alfresco":{"share":{"sites":{"favourites":{"site2":true}}}}}}
Seemed like it should work.
Or are you saying in 3.4 when you add a person to a workgroup the system now adds that group to there favs ?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-15-2010 05:22 AM
Sorry, I mis-read your original post. The site is now automatically added to your favourites when you *create* a site.
Yes that POST call should do it.
However, it would seem that marking a site as a favourite just because you've joined would quickly overwhelm the Sites dropdown, which is meant to hold a dozen or to maintain usability.
Thanks,
Mike
Yes that POST call should do it.
However, it would seem that marking a site as a favourite just because you've joined would quickly overwhelm the Sites dropdown, which is meant to hold a dozen or to maintain usability.
Thanks,
Mike
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-15-2010 12:53 PM
Sorry, I mis-read your original post. The site is now automatically added to your favourites when you *create* a site.Most users will only be members of 3 to 4 sites ( in our case ) so this is not an issue and you can unmark the site from the my-sites dashlet.
Yes that POST call should do it.
However, it would seem that marking a site as a favourite just because you've joined would quickly overwhelm the Sites dropdown, which is meant to hold a dozen or to maintain usability.
Thanks,
Mike
P.S. not my requirement but is a requirement.
SO when I post via firefox plugin REST Client I have the following
method post
url http://localhost/share/proxy/alfresco/api/people/a447738/preferences
body : {"org":{"alfresco":{"share":{"sites":{"favourites":{"site2":true}}}}}}
Response header return code 200 , content type application/json ( other stuff )
response body {}
but on refresh the site was not marked as a favorite. Need to debug a bit more to see what I missed.
