Copied to clipboard

Flag this post as spam?

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


  • suraj 3 posts 73 karma points
    Jun 28, 2019 @ 08:23
    suraj
    0

    customization on Umbraco version 8.0.2

    Can we customize Umbraco version 8.0.2 on VS Code? if Yes then please advise how to add controller, access controller methed and how to build Umbraco project solution.

  • Marc Goodson 1451 posts 9716 karma points MVP 5x c-trib
    Jun 29, 2019 @ 17:46
    Marc Goodson
    0

    Hi Suraj

    You can find information on building the Umbraco source code from the git repository here:

    https://github.com/umbraco/Umbraco-CMS/blob/v8/dev/.github/CONTRIBUTING.md

    But if you just want to add your own controller to handle an incoming request in your site, then Umbraco has extensions points that you can make use of which means you don't have to alter the source code itself to achieve your aims.

    Surface Controllers - https://our.umbraco.com/Documentation/Reference/Routing/surface-controllers allow you to handle post backs from forms in Umbraco, and are useful for rendering Child Actions within templates.

    Route Hijacking - RenderMvcControllers - https://our.umbraco.com/Documentation/Reference/Routing/custom-controllers Enable you to take full control of the incoming request through your custom controller, based on the naming convention of the alias of the document type your incoming request is made to.

    Custom Mvc Routes - https://our.umbraco.com/Documentation/Reference/Routing/custom-routes You can specify your own MVC routes to work within the Umbraco pipeline by implementing an UmbracoVirtualNodeRouteHandler and explicitly mapping a route in the RouteTable via 'MapUmbracoRoute' helper

    regards

    Marc

  • suraj 3 posts 73 karma points
    Jul 11, 2019 @ 09:20
    suraj
    0

    Hi Marc,

    My question is that, can I add new surface controller in visual studio code and debug it?

    Thanks

  • 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