Copied to clipboard

Flag this post as spam?

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


  • Bo Jacobsen 590 posts 2366 karma points
    Aug 12, 2020 @ 14:20
    Bo Jacobsen
    0

    What is the doctypegrideditorsurfacecontroller routing

    Hi all.

    Using Umbraco 8 and wanted to know the routing for DocTypeGridEditorSurfaceController since i wanna be able to call a method inside from AJAX.

    What would this routing be?

    public class TestDocTypeSurfaceController: DocTypeGridEditorSurfaceController
    {
        public ActionResult TestDocType()
        {
            // Do your thing...
            return CurrentPartialView();
        }
    }
    

    Like /Umbraco/DocTypeGridEditor/TestDocType/TestDocType ?

  • Bo Jacobsen 590 posts 2366 karma points
    Aug 13, 2020 @ 09:30
    Bo Jacobsen
    100

    I found out.

    Its simply /umbraco/surface/TestDocTypeSurface/TestDocType as standard Umbraco.

    Kick'in my self in the head now! :D

Please Sign in or register to post replies

Write your reply to:

Draft