Copied to clipboard

Flag this post as spam?

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


  • manwood 87 posts 109 karma points
    Apr 01, 2013 @ 12:17
    manwood
    0

    How can I query the allowed templates for a node or document?

    Is there any way to programmatically query the list of allowed templates for the current node?

    Thanks

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Apr 01, 2013 @ 12:44
    Matt Brailsford
    1

    Hi Manwood,

    You could do something like the following:

    var allowedTemplates = DocumentType.GetByAlias(Node.GetCurrent().NodeTypeAlias).allowedTemplates;

    Hope that helps

    Matt

Please Sign in or register to post replies

Write your reply to:

Draft