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
How can I get my DocType ID of my current node using Node Factory?
THanks for the help.
Hi Carlos,
Here is one way you could do it:
using umbraco.NodeFactory;using umbraco.cms.businesslogic.web;
var currentNode = Node.GetCurrent(); DocumentType dt = DocumentType.GetByAlias(currentNode.NodeTypeAlias); //Doctype id is: dt.Id
HTH,Tom
is working on a reply...
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.
Continue discussion
NodeFactory Document Type Id
How can I get my DocType ID of my current node using Node Factory?
THanks for the help.
Hi Carlos,
Here is one way you could do it:
HTH,
Tom
is working on a reply...
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.