0

We are updating GlassMapper from 4 to 5.

Since the GlassController is depreciated in new version and we have used GetLayoutItem in many places. Can it be replaced with MvcContext.GetContextItem from MVCContext class?

Any recommendations would be appreciated.

Thanks

1 Answer 1

0

GlassView and GlassController got deprecated since v5. Have a look at Glass.Mapper.Sc.Web.Mvc.IMvcContext, you should now be using the methods provided there to get the datasource, context and rendering items:

enter image description here

I hope it helps you.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.