Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Biagio Paruolo 1621 posts 1914 karma points c-trib
    Jun 20, 2018 @ 09:52
    Biagio Paruolo
    0

    How to change content node icon by API?

    How to change content node icon by API?

  • jf 8 posts 103 karma points c-trib
    Jun 20, 2018 @ 14:43
    jf
    0

    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.

    enter image description here

    edit: This appears to be a list of the icon names as well - https://nicbell.github.io/ucreate/icons.html

  • Biagio Paruolo 1621 posts 1914 karma points c-trib
    Jun 22, 2018 @ 06:52
    Biagio Paruolo
    0

    I'll try. Thanks.

Please Sign in or register to post replies

Write your reply to:

Draft