Base solution for your next web application
Open Closed

Add HTML to UserNotification #6636


User avatar
0
andmattia created

Is it possibile add HTML code in a user notfication (es. a link to download a file)?

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

3 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @andmattia,

    Are you using Angular or JQuery version ? For MVC, you can do it here https://github.com/aspnetzero/aspnet-zero-core/blob/dev/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Web.Mvc/wwwroot/Common/Scripts/appUserNotificationHelper.js#L22

    Angular version has a similar file, you can find it in the source code. Basically, when you return a valid url in this function, it will be the click url of the notification and when user clicks a notification, user will be redirected to that url.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    andmattia created

    Hi @ismcagdas

    sorry I forget to add the framework used. ASPNETZERO AngualrJS. It try to look your suggestion and I uppdate you.

    Thanks

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @andmattia

    Please re-open if you haven't solved the problem.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)