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
  • 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

Reply
  • 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

Children