• Recent
    • Tags
    • Popular
    • Register
    • Login

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    admin-template based custom dashboard migration to Mango 3.0

    Dashboard Designer & Custom AngularJS Pages
    2
    6
    2.1k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      shaun
      last edited by

      Hi All,

      I've got an existing dashboard based on the adminTemplate in Mango 2.8 and would like to use it as the basis for a new but very similar project using mango 3.0. As much as I'd love to re-do it all with the new dashboard system, its not really an option time wise.

      I've been looking to see how best to migrate this, but it seems there have been significant changes under the hood with Mango that means this is not a trivial thing to do.

      I notice there is another thread saying that the adminTemplate is broken right now in Mango 3.0, so I can't even use that as a good reference to start from.

      Is there any guide or documentation on how to migrate?

      Cheers!
      -Shaun

      1 Reply Last reply Reply Quote 0
      • Jared WiltshireJ
        Jared Wiltshire
        last edited by

        Hey @shaun if the project is just a set of pages then you might find its not as hard to migrate to custom pages as you might think. Do you have any custom AngularJS directives or services written?

        If you do want to just keep using the admin template we will have a new release out next Wednesday 31st May and I have fixed up the adminTemplate for it.

        Developer at Radix IoT

        S 1 Reply Last reply Reply Quote 0
        • S
          shaun @Jared Wiltshire
          last edited by

          Hi @Jared-Wiltshire

          I think we might have a few customisations, yes. If its Wednesday 31st, I can wait until then. If I have any dramas after the update I'll let you know.

          Cheers!
          -Shaun

          Jared WiltshireJ 1 Reply Last reply Reply Quote 0
          • Jared WiltshireJ
            Jared Wiltshire @shaun
            last edited by

            @shaun I've added a section into the UI Settings where you can specify the path to an AngularJS module. This will enable you to load custom directives etc into the standard UI pages.

            So you will have two potential upgrade paths for 3.1.

            Developer at Radix IoT

            1 Reply Last reply Reply Quote 0
            • S
              shaun
              last edited by

              Hi Jared,

              Still trying to get the admin template going... I'm not sure if I'm doing something wrong...

              What I've developed previously doesn't work still so I thought I'd try the adminTemplate as if it were 'new'...

              I've got the latest mango 3 updated thismorning.

              I copied from mango/web/modules/mangoUI/web/adminTemplate to:
              mango/overrides/web/modules/mangoUI/web/test

              I then renamed as instructed in index.html the paths replacing 'adminTemplate' with 'test'.

              I then tried to hit http://localhost:8080/user-ui/test/ and I'm greeted with a spinning gear forever.

              Am I missing something?

              Cheers!
              -Shaun

              Jared WiltshireJ 1 Reply Last reply Reply Quote 0
              • Jared WiltshireJ
                Jared Wiltshire @shaun
                last edited by Jared Wiltshire

                @shaun I just followed your exact steps using Mango Core v3.1.1 and Mango UI v3.1.5 and I had no problems. You have to replace adminTemplate in 2 places, make sure you get both.

                Can you let me know your core and UI module versions, what browser you are testing on, and also open the developer console (Ctrl-Shift-I in chrome) and let me know if there are any errors in the console. Also try clearing your cache.

                edit: I'm going to say again that we don't recommend taking this route, you would be better off using a custom page or the dashboard designer unless you have a need for a highly customized app and you are comfortable maintaining it.

                Developer at Radix IoT

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post