Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...how to get GetCurrentUserInfo() when developing a spa modulehow to get GetCurrentUserInfo() when developing a spa module
Previous
 
Next
New Post
1/18/2016 11:01 AM
 

Hi, I spent at least 3 hours looking for examples. But i can't see how to get the GetCurrentUserInfo(), in a SPA module for DNN8.

 all i can find is c# examples DotNetNuke.Entities.Users.UserController.GetCurrentUserInfo(),

any help greatly appreciated.

 
New Post
1/18/2016 7:07 PM
 
I am wondering if you tried looking here: https://github.com/dnnsoftware/Dnn.Pl.... The UserInfo can be obtained in the WebApi. SPA module obtains data via WebApi and that's where you want to know the user's details.

Ash Prasad
Director of Engineering
DNN Corp.
 
New Post
1/20/2016 7:10 PM
 
thanks for the replie Ash, I spent a lot of time looking through the github project, and cant seem to find what i need there. so I asume that I am missing something obvious. As it doesnt seem to be as simple as searching for something like 'UserInfo from dnn SPA' could you tell me what i should be searching for, specifically in relation to: userinfo SPA (javascript) modules in dnn8.

I asume from what you said above WebAPI is something i need to read up on, but are there any other keywords i need to know to get help on this subject?
thanks again for any help.
 
New Post
2/16/2016 6:25 AM
 
as this doesnt seem possible does anyone know any work aorunds that can be used to pass the user details from DNN to a SPA module
 
New Post
2/16/2016 4:23 PM
 

Web API is the backend that allows you to send data from the backend to the front end. This requires you to have a class (written in vb.net or c#) that inherits from a base classes (that is known to DNN) and returns data to the front end; these are named controllers. You can see an example here: https://github.com/dnnsoftware/Dnn.Platform.Samples.Mvc/blob/master/src/Dnn.ContactList.Spa/Services/ContactController.cs


Chris Paterra

Get direct answers to your questions in the Community Exchange.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...how to get GetCurrentUserInfo() when developing a spa modulehow to get GetCurrentUserInfo() when developing a spa module


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out