Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I want to show certain instructions to the admin user after they login to Umbraco.
I have followed the article https://24days.in/umbraco-cms/2015/umbraco-7-back-office-tweaks/ to add a Javascript file that can show a js alert post login.
angular.module('umbraco').config(['$httpProvider',function ($httpProvider) { $httpProvider.interceptors.push(function ($q) { return {'response': function (response) { if (response.config.url.indexOf("/umbraco/backoffice/UmbracoApi/Authentication/PostLogin") !== -1) { alert('TEST') // dialogService.open({template: '/app_plugins/SuccessLoginPopup/successlogin.htm',show: true}); //$("<div>This is a test</div>").dialog(); } return response; } }; }); }
]);
The alert works fine on the above code but the dialogService is not available and shows error.
Is there any solution I can display a nice html popup with instructions to admin post login?
There is Umbraco tours - but thats not usable for me as I want to write some login to the JS code to display various information based on the dates.
Any help would be greatly appreciated
In order to use the dialogService, you'll need to inject it as a dependency in the same way you've included the $httpProvider.
dialogService
$httpProvider
For example, something like the following should work:
angular.module('umbraco').config(['$httpProvider', 'dialogService', function ($httpProvider, dialogService) {
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Show a popup / dialogue box after successful login to Umbraco
I want to show certain instructions to the admin user after they login to Umbraco.
I have followed the article https://24days.in/umbraco-cms/2015/umbraco-7-back-office-tweaks/ to add a Javascript file that can show a js alert post login.
]);
The alert works fine on the above code but the dialogService is not available and shows error.
Is there any solution I can display a nice html popup with instructions to admin post login?
There is Umbraco tours - but thats not usable for me as I want to write some login to the JS code to display various information based on the dates.
Any help would be greatly appreciated
In order to use the
dialogService
, you'll need to inject it as a dependency in the same way you've included the$httpProvider
.For example, something like the following should work:
is working on a reply...