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 4125 posts 22223 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

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies