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 441 posts 2735 karma points MVP c-trib
    Jul 10, 2019 @ 21:09
    Søren Kottal
    100

    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.

  • JLon 324 posts 476 karma points
    1 week ago
    JLon
    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