Copied to clipboard

Flag this post as spam?

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


  • mohamed abdallah 2 posts 71 karma points
    1 week ago
    mohamed abdallah
    0

    problem with Model and creating new document type (redirected you too many times. )

    hi, I have a problem with Umbraco I need to create another page and when I create a document type with a template it does not appear in the nav and when I create a document type without a template and link it with a template I created it does not work. It just works and appears in the nav when I copy another document type. but when I add a template to it not work as a model and I can't call it from another page. example I created a blog post page and blog articles page I copied them from the project page and the project list page. when I work with it the @model does not work and I can't use @inherits Umbraco.Web.Mvc.UmbracoViewPage<Blog>. It gives me the error " redirected you too many times. " and it works when I remove <Blog> from the code. and can't call it from the blog list page. and the same with the blog list page. this is the code

    @inherits Umbraco.Web.Mvc.UmbracoViewPage<BlogList>
    @using name.Helpers
    @{
    Layout = "Master.cshtml";
    }
    

    and the code that copied from

    @inherits Umbraco.Web.Mvc.UmbracoViewPage<ProjectList>
    @using name.Helpers
    
    @{
       Layout = "Master.cshtml";
     }
    

    I hope some help

    I hope I have clarified the problem.

    thanks

Please Sign in or register to post replies

Write your reply to:

Draft