Copied to clipboard

Flag this post as spam?

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


  • Thomas 43 posts 123 karma points
    Aug 17, 2018 @ 07:29
    Thomas
    0

    Read Icon value in C#

    Hi, Here i want to read/ get Icon picker valuein C#, the umbraco return some id value, by using this how can i get the Icon value.

    and using umbraco.library which method we can use for read icon value?

  • fatmazayed 41 posts 122 karma points
    Jan 16, 2024 @ 21:35
    fatmazayed
    0
       var iconAlias = tem.SectionFontAwesome?.Split(' ')?.FirstOrDefault().Split('-')[1];
    

    assume that SectionFontAwesome is the properity from umbraco to get fontAwesome

    Note:

    some icons become obselete and not be rendered in css

Please Sign in or register to post replies

Write your reply to:

Draft