Copied to clipboard

Flag this post as spam?

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


  • Paul Sørensen 304 posts 650 karma points
    Aug 11, 2014 @ 22:32
    Paul Sørensen
    0

    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

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Aug 11, 2014 @ 22:44
    Rusty Swayne
    0

    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

  • Paul Sørensen 304 posts 650 karma points
    Aug 11, 2014 @ 23:37
    Paul Sørensen
    0

    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

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Aug 12, 2014 @ 19:19
    Rusty Swayne
    0

    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

  • Paul Sørensen 304 posts 650 karma points
    Aug 12, 2014 @ 23:05
    Paul Sørensen
    0

    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

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Aug 13, 2014 @ 00:56
    Rusty Swayne
    0

    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.

Please Sign in or register to post replies

Write your reply to:

Draft