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,
How can I get the list of all the document types created in Umbraco?
After some googling I didn't find any API regarding the list of document types.
Can anyone help to get the list of Doc types?
Thanks in advance.
Regards,
Urvish Mandaliya
Hi Urvish,
Did you mean ContentType?
Try to look: https://our.umbraco.org/documentation/Reference/Management/Services/ContentTypeService
You can use GetAllContentTypeAliases, you will have all content type aliases, and then if you need you can get contenTypes by alias.
Thanks, Alex
Thanks Alex for the reply.
I mean "Document Type". Please see the below image. I need the list of all the Document types.
From the above ContentTypeService I didn't get the list of the Document Types.
Urvish, you get list of aliases and get each content type by alias.
DocumentType = ContentType
Thanks Alex.
Got the list.
Urvish, you are welcome.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
How to get list of All the document types
Hi,
How can I get the list of all the document types created in Umbraco?
After some googling I didn't find any API regarding the list of document types.
Can anyone help to get the list of Doc types?
Thanks in advance.
Regards,
Urvish Mandaliya
Hi Urvish,
Did you mean ContentType?
Try to look: https://our.umbraco.org/documentation/Reference/Management/Services/ContentTypeService
You can use GetAllContentTypeAliases, you will have all content type aliases, and then if you need you can get contenTypes by alias.
Thanks, Alex
Thanks Alex for the reply.
I mean "Document Type". Please see the below image. I need the list of all the Document types.
From the above ContentTypeService I didn't get the list of the Document Types.
Regards,
Urvish Mandaliya
Urvish, you get list of aliases and get each content type by alias.
DocumentType = ContentType
Thanks, Alex
Thanks Alex.
Got the list.
Urvish, you are welcome.
is working on a reply...