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
In Umbraco 7 I wrote like this
IContentType dt = contentTypeService.GetContentType("nameCont");
Now in Umbraco 8 which is the fastest method to get a specific contentType?
Can anyone help me?
Can you use:
IEnumerable<IPublishedContent> t = Umbraco.Content(1234).Descendants().Where(x => x.ContentType.Alias == "nameCont");
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted