Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Is there any way to programmatically query the list of allowed templates for the current node?
Thanks
Hi Manwood,
You could do something like the following:
var allowedTemplates = DocumentType.GetByAlias(Node.GetCurrent().NodeTypeAlias).allowedTemplates;
Hope that helps
Matt
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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
Hi Manwood,
You could do something like the following:
Hope that helps
Matt
is working on a reply...