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. 

   array(
        'route' => "#$moduleName/create",
        'label' => 'LNK_NEW_RECORD',
        'acl_action' => 'create',
        'acl_module' => $moduleName,
        'icon' => 'fa-plus',
    ),

   array(
        'route' => "#$moduleName/create",
        'label' => 'LNK_NEW_RECORD',
        'acl_action' => 'create',
        'acl_module' => $moduleName,
        'icon' => 'sicon-plus',
    ),

Parents Reply
  • Hi everyone,

    Took me a bit longer to get all the answers I needed to reply it back to you on this matter.

    - To reiterate, SugarIcon is our standard icon library going forward and we expect to expand the number of available icons over time.
    - FontAwesome is deprecated and we plan to remove it as per earlier announcement
    - Here are some alternative paths to explore:
    - You can include FontAwesome in your MLPs as you would with any other code library that isn't part of Sugar core.
    - During a previous FontAwesome upgrade from v3 to v4, we created an open source "Compatibility MLP package" that could be installed to add back v3 icon support for instances that needed that. We're currently exploring doing something similar for this icon library upgrade. : (sugarclub.sugarcrm.com/.../font-awesome-3-2-1-compatibility-package-for-sugar-7-6)

    SugarCRM | Principal Developer Advocate

Children