CMS class name

Ei Dar Li Ko Ko asked on January 21, 2015 10:49

Hi.. I have this coding below return mTreeProvider ?? (mTreeProvider = new TreeProvider(CMSContext.CurrentUser));

the CMSContext is broken down now inside the Kentico 8 and which namespace should i use? I have already tried the IUserInfo but it is given me error.

Recent Answers


Petar Kozjak answered on January 21, 2015 12:59

Hi,

you need to change CMSContext.CurrentUser > CMS.Membership.MembershipContext.AuthenticatedUser

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on January 21, 2015 13:40

@No True, you've had several questions like this, I'd suggest checking out the documentation regarding upgrading from 7.x -> 8.x and also check out the API Changes. These should give you the answers you're looking for without having to wait for someone.

2 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.