Copied to clipboard

Flag this post as spam?

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


  • Rihab 104 posts 388 karma points
    Dec 15, 2018 @ 08:43
    Rihab
    0

    Show a confirmation message in the backoffice ApplicationEventHandler

    hello everyone,

    I need an urgent help,

    I'm trying to show the content editor a confirm message with 'yes' and 'cancel' options when deleting or Published events, I've tried "NotificationService" but I didn't know how to use it and I couldn't find an example on the internet.

    I've accomplished :

    e.Messages.Add(new EventMessage("My message title", "My message", EventMessageType.Error));
    

    but that is just a notification message.

    can anyone Help me?

  • Rihab 104 posts 388 karma points
    Dec 17, 2018 @ 06:30
    Rihab
    0

    any idea ??

  • Søren Kottal 712 posts 4570 karma points MVP 6x c-trib
    Dec 17, 2018 @ 07:38
    Søren Kottal
    1

    Hi!

    You need to use the notificationsService with Angular.

    Theres a blogpost showing most of what you need here: https://24days.in/umbraco-cms/2014/umbraco-angular-tips/

  • Rihab 104 posts 388 karma points
    Dec 24, 2018 @ 09:06
    Rihab
    0

    thank you for the replay Søren, I've read the article but I didn't figure out how to use the Angular notificationsService when all my code is written in C# in ApplicationEventHandler Published Event handler.

    any idea, I'm lost,

    thanks, Rihab.

  • Andy Robinson 9 posts 96 karma points c-trib
    Dec 24, 2018 @ 13:19
    Andy Robinson
    100

    Hello,

    Its not possible to show the kind of alerts you are after in C#. the notificationService only shows 'advice' to the user, but no interactions.

    If you want to cutomises the UI of ther backoffice you will need to get your angular on. Give it a bash, its steep leaning curve for a backender but tus good fun!

    A.

Please Sign in or register to post replies

Write your reply to:

Draft