Retrieving umbraco user details Options
acl
Posted: Friday, January 18, 2008 5:00:32 AM
Rank: Devotee

Joined: 12/15/2006
Posts: 40
I am wanting to add some of my own custom pages to the umbraco interface. How do I go about retrieving information about the current umbraco user? I had a look around the umbraco namespace and found the userTasks class, but I'm not sure if this is what I need.
drobar
Posted: Friday, January 18, 2008 2:05:27 PM

Rank: Umbracoholic

Joined: 9/8/2006
Posts: 1,696
Location: KY, USA
Take a look at umbraco.library:IsLoggedOn() and :HasAccess() and :IsProtected(). Those will let you know if a page should be viewable to a *MEMBER*.

Remember that "users" are those that can log in to umbraco's user interface. Whereas "members" are those who have a profile on the public website and might also be able to "login" to the website itself to see protected content. But members can not log in to the umbraco interface itself.

As for getting member details, check the umbraco.library:GetCurrentMember() and :GetMember() and :GetMemberName().

cheers,
doug.

MVP 2007-2009 - Official Umbraco Trainer for North America - Percipient Studios
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.