Ability to use custom icon in Entity Definitions

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • murugappan
    Active Community Member
    • Aug 2017
    • 467

    Ability to use custom icon in Entity Definitions

    The current list of icons seem good for general use but becomes inadequate to meet the need of specific businesses like medical services. It would not be possible for Espocrm to include all the various icon for so many types of enterprises. To resolve this i am suggesting a feature in Espocrm where we could use a custom icons from our own folders.

    I hope this becomes a reality.
  • yuri
    Member
    • Mar 2014
    • 8440

    #2
    It already should be possible for font icons.

    Add font file: https://docs.espocrm.com/development...ient/#linklist
    Add CSS file: https://docs.espocrm.com/development...lient/#csslist
    Edit clientDefs metadata file manually to specify a needed icon class: https://docs.espocrm.com/development...efs/#iconclass
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • dimyy
      Active Community Member
      • Jun 2018
      • 569

      #3
      You can use any custom classes as iconClass: "iconClass": "customIcon bpm2bIcon"
      The only limitation is that this parameter is edited directly in clientDefs/entity

      You can use any png / svg as icon.

      Additional CSS like
      Code:
      .bpm2bIcon:before {
          background-image: url(/client/custom/img/bpm2b_website_logo_transparent_background.png);
      }​
      
      .customIcon:before {
          content: '';
          width: 20px /* width of the image */;
          height: 20px /* height of the image */;
          display: inline-block;
          background-size: contain;
      }​

      Comment

      Working...