admin-template based custom dashboard migration to Mango 3.0
-
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 -
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.
-
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 -
@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.
-
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/testI 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 -
@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.