Copied to clipboard

Flag this post as spam?

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


  • AbsolutelyN 89 posts 437 karma points
    Oct 20, 2022 @ 15:54
    AbsolutelyN
    0

    Can you override a backoffice angularjs controller?

    I'm working on a site which allows members of staff to to be invited to limited areas of the backoffice. The invite process sets a password, then switches to a view where you optionally set an avatar.

    The client insists that the invite process must skip the option to set an avatar - ie it must not show this option at all.

    I can probably alter the files but this will probably cause all kinds of issues with upgrades overriding changes. Is there a way in angularjs to create a new modified controller and swap it out?

    https://github.com/umbraco/Umbraco-CMS/blob/e626fca2432582f052cb13654eedd9e60ef8723f/src/Umbraco.Web.UI.Client/src/common/directives/components/application/umblogin.directive.js

    https://github.com/umbraco/Umbraco-CMS/blob/e626fca2432582f052cb13654eedd9e60ef8723f/src/Umbraco.Web.UI.Client/src/views/components/application/umb-login.html

    Or is there any other simpler way to solve this? Using Umbraco 10.3

    Any thoughts much appreciated

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies