Copied to clipboard

Flag this post as spam?

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


  • David Armitage 508 posts 2078 karma points
    May 20, 2020 @ 12:50
    David Armitage
    0

    Umbraco 8 How to Catch Member Events (Eg when a member is published)

    Hi Guys,

    I am familiar with Events in Umbraco 8 relating to content but I cant find any documentation on creating member events.

    When a member is published I want to trigger an even so I can do some extra work.

    Anyone any idea what the methods should look like or can point me in the right direction here the documentation is?

    Thanks in advanced.

    David

  • Alex Skrypnyk 6150 posts 24110 karma points MVP 8x admin c-trib
    May 20, 2020 @ 13:24
    Alex Skrypnyk
    0

    Hi David,

    Did you read this article about how to subscribe to the event? - https://our.umbraco.com/documentation/getting-started/Code/Subscribing-To-Events/

    Umbraco changed events system since v7, they went from ApplicationEventHAndlers to Components, check out - https://creativewebspecialist.co.uk/2018/06/15/umbraco-v8-bye-bye-applicationeventhandler-hello-umbraco-components/

    https://www.perplex.nl/en/blog/2019/umbraco-v8-changes-for-developers/

    MemberService events documentation page isn't created yet I think

    Thanks,

    Alex

  • David Armitage 508 posts 2078 karma points
    May 20, 2020 @ 13:47
    David Armitage
    0

    Hi Alex,

    Thanks for your reply.

    Yes I am familiar with creating events with Umbraco8 using compositions etc.

    It's just the membership events I am struggling with because the lack of documentation. I don't know the method contractor and body etc.

    If anyone know one has an example of this it would be great.

    Kind Regards

    David

  • Anthony Powell 13 posts 47 karma points
    Apr 29, 2021 @ 23:00
    Anthony Powell
    0

    Hey @David

    Sorry you've almost waited a YEAR for a response on this.

    But there is the 'ContentService' you can listen to for events as you were familiar with. But there is also a 'MemberService' used in a similar fashion.

    Everything is exactly the same from that point on. Just pay attention to the convention they're using.

    enter image description here

Please Sign in or register to post replies

Write your reply to:

Draft