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 to change content node icon by API?
This works
var contentType = ApplicationContext.Current.Services.ContentTypeService.GetContentType(1066); contentType.Icon = "icon-wrench"; ApplicationContext.Current.Services.ContentTypeService.Save(contentType);
You can get the name of the icon by hovering over it.
edit: This appears to be a list of the icon names as well - https://nicbell.github.io/ucreate/icons.html
I'll try. Thanks.
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
How to change content node icon by API?
How to change content node icon by API?
This works
You can get the name of the icon by hovering over it.
edit: This appears to be a list of the icon names as well - https://nicbell.github.io/ucreate/icons.html
I'll try. Thanks.
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.