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.
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.
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
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.
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
Hi Marc,
My question is that, can I add new surface controller in visual studio code and debug it?
Thanks
is working on a reply...