Scott Koon
Registered Users
Post Count:17
 |
| 07 Apr 2010 11:45 AM |
|
Hi,
I want to output a JSON object to a page with the ActiveSocial module on it so I can create JavaScript widgets in other parts of the page and do some other dynamic things.
Right now, I'm trying to output a list of the groups the currently logged in user belongs to. Is a custom view the best way to do this or is there another way?
How would I go about outputting a users group info as JSON to the page?
Thanks. |
|
|
|
|
Will Morgenweck
Forum Admin
DotNetNuke Staff
Post Count:7672
 |
| 07 Apr 2010 12:48 PM |
|
Active Social already supports several different handlers that output various info in JSON format. Unfortunately, the one you are looking for won't be available until the 1.6 release coming in the next few days. The user profile handler has a couple of different options. You will also be able to request the entire object with profile, friends and groups combined or just choose which set of data you need. It does adhere to the privacy settings for the user. The friend and group objects only contain a subset of data. Friends would be Display Name, First Name, Last Name, ProfileUrl, StatusMessage and OnlineStatus. The Group object contains group name, group url and group description. |
|
Will Morgenweck
Director of Product Management
DotNetNuke Corp.
|
|
|
Scott Koon
Registered Users
Post Count:17
 |
| 07 Apr 2010 12:57 PM |
|
Great, thanks Will. Having a handler return JSON will be a much better solution than trying to hack together a custom template that will output JSON to the page.
|
|
|
|
|
Scott Koon
Registered Users
Post Count:17
 |
| 29 Oct 2010 02:47 PM |
|
Has there been any movement on this? I'm looking for some documentation on the profile API but I'm not finding any. |
|
|
|
|
Will Morgenweck
Forum Admin
DotNetNuke Staff
Post Count:7672
 |
| 29 Oct 2010 02:50 PM |
|
Hi Scott, Yes, this has been partially implemented. I will write this up shortly. |
|
Will Morgenweck
Director of Product Management
DotNetNuke Corp.
|
|
|