Copied to clipboard

Flag this post as spam?

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


  • ٌ 32 posts 172 karma points
    Dec 15, 2018 @ 08:43
    ٌ
    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?

  • ٌ 32 posts 172 karma points
    Dec 17, 2018 @ 06:30
    ٌ
    0

    any idea ??

  • Søren Kottal 352 posts 2004 karma points 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/

  • ٌ 32 posts 172 karma points
    29 days ago
    ٌ
    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 74 karma points c-trib
    29 days ago
    Andy Robinson
    1

    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