SugarIcons and FontAwesome in the same definition

Is it possible to have definitions for both SugarIcons and FontAwesome icons at the same time? For example in the menu bar for a module; we would like the sugaricons to appear for newer versions and font awesome to appear for older versions. Can we define in such a way that either will work? We have Module Loadable Packages that need to work with both older and newer versions of Sugar. 

Fullscreen
1
2
3
4
5
6
7
array(
'route' => "#$moduleName/create",
'label' => 'LNK_NEW_RECORD',
'acl_action' => 'create',
'acl_module' => $moduleName,
'icon' => 'fa-plus',
),
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Fullscreen
1
2
3
4
5
6
7
array(
'route' => "#$moduleName/create",
'label' => 'LNK_NEW_RECORD',
'acl_action' => 'create',
'acl_module' => $moduleName,
'icon' => 'sicon-plus',
),
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Parents
  • Hi Jeff,

    As of now yes, we're still loading FontAwesome icons as part of our "deprecation policy", however it will be gone soon.

    You don't need any specific configuration for this to happen.

    If you're updating an icon in metadata, they should just need to have the icon name, ex fa-cog or sicon-settings and it’ll render properly. If this is being added to a template, they can follow normal procedure of fa fa-cog or sicon sicon-settings.

    Again, keep in mind that FA will be gone soon.

    rafa

    SugarCRM | Principal Developer Advocate

  • Hi ,

    Are there plans to expand the SugarIcon library before removing FontAwesome? Having a robust icon library is helpful for building integrations and plug-ins with an easily identifiable user experience. The SugarIcon library, when compared to FontAwesome, is missing icons including standard functionality (e.g. sign-in), common social media platforms (e.g. LinkedIn), and more general business applications (e.g. airplane for travel/expense, laptop for IT, gavel for legal, etc.). 

Reply
  • Hi ,

    Are there plans to expand the SugarIcon library before removing FontAwesome? Having a robust icon library is helpful for building integrations and plug-ins with an easily identifiable user experience. The SugarIcon library, when compared to FontAwesome, is missing icons including standard functionality (e.g. sign-in), common social media platforms (e.g. LinkedIn), and more general business applications (e.g. airplane for travel/expense, laptop for IT, gavel for legal, etc.). 

Children
No Data