Copied to clipboard

Flag this post as spam?

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


  • Sheena Arora 1 post 72 karma points
    Feb 01, 2017 @ 09:01
    Sheena Arora
    1

    Redirect to custom route via custom tree

    Hi

    I am new to umbraco. I am trying to create MVC application which requires creating custom section/tree in umbraco and on clicking tree node , redirects to custom route.

    I have successfully created custom tree using TreeController. I am creating razor views which are stored in ~/Views/ folder. What I want is when user clicks on tree node , it loads the ~/views/(some .cshtml file) in content frame.

    Currently when i define the custom route in "createTreeNode" function as "/ControllerName/Action/" , umbraco creates the route as "umbraco#/controllerName/Action/" which is inaccessible.

    I am stuck here.

    Thanks

  • Damien (Slipoch) 62 posts 346 karma points
    Feb 02, 2017 @ 00:02
    Damien (Slipoch)
    0

    Agreed, I am trying to do the same

  • David Brendel 792 posts 2970 karma points MVP 3x c-trib
    Feb 02, 2017 @ 16:16
    David Brendel
    0

    Hi,

    not quite sure if it is possible at all to use razor views for this.

    The URL looks like this as umbraco does the routing by angular. So the normal way is to use plain HTML views with angular to setup your views for the custom section you are creating.

    Regards David

  • 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