Checkout the Merchello.config file. /App_Plugins/Merchello/Config/merchello.config.
In there you will find the backoffice element - I moved the routes here so that we had more control turning things on and off while we continue to build out the back office. Also, it allows us to hide certain sections after we've finished configuring things for clients.
Are you talking about the ApiController routes ...
We add these to the "umbracoUrls" in an event handler. Umbraco's ServerVariablesParser has a Parsing event, which we handle and add our back office controllers with an alias.
Look at Merchello.Web.Trees.ServerVariablesParsingEvents
I did not think there was any "magic" to get that running ... but I'll make sure Jason or one of the ProWorks devs looks at this thread and replies. They did the actual Angular bits.
Routing
Hi
I have downloaded your package and is trying to understand your routing.
I can't see that the URL you set up in the TreeController follows the documented pattern.
merchello/merchello/Notifications/manage
I would have expected to see something like this
{mypackage}/backoffice/{treetype}/{method}.html
Have you added something to the routing? - or how do you do it
Thanks
Paul S
Hi Paul,
Checkout the Merchello.config file. /App_Plugins/Merchello/Config/merchello.config.
In there you will find the backoffice element - I moved the routes here so that we had more control turning things on and off while we continue to build out the back office. Also, it allows us to hide certain sections after we've finished configuring things for clients.
Does this help?
Thanks,
Rusty
Thanks for a guick reply.
The routes listed here are the same as in your TreeConntroller so I don't get any further in understanding how it complys with the Umbraco routing
Thanks
Paul S
Hi Paul,
Are you talking about the ApiController routes ...
We add these to the "umbracoUrls" in an event handler. Umbraco's ServerVariablesParser has a Parsing event, which we handle and add our back office controllers with an alias.
Look at Merchello.Web.Trees.ServerVariablesParsingEvents
Hi Rusty
I still don't see how merchello/merchello/Notifications/manage hits an html page - must be hotifications.html
I quess it has to match one of the route patterns in route.js - or have you somehow change this?
/Paul S
Hi Paul,
I did not think there was any "magic" to get that running ... but I'll make sure Jason or one of the ProWorks devs looks at this thread and replies. They did the actual Angular bits.
is working on a reply...