Copied to clipboard

Flag this post as spam?

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


  • Carlos 338 posts 472 karma points
    Jun 20, 2012 @ 21:15
    Carlos
    0

    Can you get a doctype by the ID instead of the nodetypealias?

    Can you get a doctype by the ID instead of the nodetypealias?

    We noticed that since we upgraded to 4.7.2,  since Razor can not take "-" in the nodetypealias we were wondering if there was a way to get the DocTypes by ID instead of the NodeTypeAlias name.

    Is this possible?

    Thanks

  • Rodion Novoselov 694 posts 859 karma points
    Jun 21, 2012 @ 11:23
    Rodion Novoselov
    0

    Hi. Wouldn't it fit?

    using umbraco.cms.businesslogic.web;

    var docType = new DocumentType(docTypeId);

     

     

Please Sign in or register to post replies

Write your reply to:

Draft