Copied to clipboard

Flag this post as spam?

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


  • Jose Gonzalez 15 posts 98 karma points
    Apr 20, 2016 @ 15:50
    Jose Gonzalez
    0

    Doctype Grid Editor

    Hi All,

    Anyone using Hybrid Framework and Doctype Grid Editor tried to pass a model to a strong typed view using DocTypeGridEditorSurfaceController?

    I prefer to use strong typed views, and I tried this, but it's not working:

    public class BasicBlockSurfaceController : DocTypeGridEditorSurfaceController
        {
            public ActionResult BasicBlock()
            {
                var model = ModelLogic.CreateMasterModel() as MasterModel<BasicBlock>;
    
               return CurrentPartialView(model);
            }
        }
    

    and in my view:

    @inherits Umbraco.Web.Mvc.UmbracoViewPage<BasicBlock>
    

    How can we put a DocTypeGridEditorSurfaceController in the umbraco.extensions project with the rest of controllers? The nuget package only adds the references to the main project

Please Sign in or register to post replies

Write your reply to:

Draft