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
hi folks.,
Is it possible to get contentType or DocumentType id dynamicaly?
Yes. In XSLT you get it by getting the @nodeTypeAlias property on a node.
You can do the same in a template by using Inline XSLT. A primer can be found here.
thanks for your reply.
I am using C# class.. i need to get it there
Hi Sam,
I assume that you are using a UserControl. The following statement will return the alias of the ContentType
umbraco.presentation.nodeFactory.Node.GetCurrent().NodeTypeAlias
umbraco.presentation.nodeFactory.
Node.GetCurrent().NodeTypeAlias
Hope this helps you,
Richard
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
Regarding id
hi folks.,
Is it possible to get contentType or DocumentType id dynamicaly?
Yes. In XSLT you get it by getting the @nodeTypeAlias property on a node.
You can do the same in a template by using Inline XSLT. A primer can be found here.
thanks for your reply.
I am using C# class.. i need to get it there
Hi Sam,
I assume that you are using a UserControl. The following statement will return the alias of the ContentType
Hope this helps you,
Richard
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.