Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jeroen Mink 12 posts 51 karma points
    Jul 10, 2019 @ 08:52
    Jeroen Mink
    0

    Access to MembershipHelper

    How do i get access to the MembershipHelper in Umbraco 8? I want to get the member back as IPublishedContent so i can use the strongly typed models from the ModelsBuilder. Or is there another way to get an IPublishedContent version of a IMember (via MemberService)?

  • Søren Kottal 702 posts 4497 karma points MVP 5x c-trib
    Jul 10, 2019 @ 21:09
    Søren Kottal
    101

    Hi Jeroen

    On the UmbracoHelper there is a method called Member() that returns a member as IPublishedContent.

    Also on the UmbracoHelper is the MembershipHelper, from which you can GetCurrentMember() as IPublishedContent.

  • Jay 413 posts 639 karma points
    Nov 14, 2019 @ 11:50
    Jay
    0

    Hey Soren,

    When we're doing the Component (inheriting from IComponent)

    Do you know if there's a way of getting the MembershipHelper() ?

    Thanks

Please Sign in or register to post replies

Write your reply to:

Draft