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...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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...