SPPB 4 - Custom Addons - Forum | JoomShaper
Staff replied SP Page Builder

SPPB 4 - Custom Addons

Asked by Alvaro 4 years ago Last activity 4 years ago

Hello, we are updating our custom addons for SPPB4, and we have the following problems that according to logic should work, but they don't.

  1. Icon of the addon in the online editor: The core addons show the icons with this code 'icon' => 'addon::animated_number' which suggests that it should work the same with custom addons using 'icon' => 'addon::ADDON_NAME' In the main configuration of the addon the icon was added in SVG, we even put the SGV of a core addon but when calling with 'icon' => 'addon::ADDON_NAME' it doesn't work. It would be great if this is possible, or to know how to display the custom icon in a custom addon, or at least to have a list of the icons available for the SPPB4 editor.

  2. Typography fallback: font_size and line_height retrieve correctly but FONT_WEIGHT does not, this happens in custom addons, even some of your own.
    Previous field code

    'number_font_wight'=>array(
     'type'=>'select',
     'title'=>JText::_('COM_SPPAGEBUILDER_ADDON_ANIMATED_NUMBER_FONT_WEIGHT'),
     'desc'=>JText::_('COM_SPPAGEBUILDER_ADDON_ANIMATED_NUMBER_FONT_WEIGHT_DESC'),
     'values'=>array(
         100=>100,
         200=>200,
         300=>300,
         400=>400,
         500=>500,
         600=>600,
         700=>700,
         800=>800,
         900=>900,
     ),
    ),

    with Fallback

    'number_typography' => [
     'type'     => 'typography',
     'fallbacks' => [
         'font' => 'number_font_family',
         'size' => 'font_size',
         'line_height' => 'line_height',
         'weight' => 'number_font_wight',
     ],
    ],
  3. Fallback everywhere: Is there a possibility to upgrade to be able to use fallback in any field? For example: In previous versions of SPPB we have customized core addons to add custom icons by adding a new field custom_icon (maybe you have done it too) so I think you could use fallback to move the value of custom_icon from type list to the new icon_font icon type.

Thanks

1 reply

Toufiq Senior Staff

Hi there,

Thanks for contacting us. Sorry for the inconvenience. I will share your post with our developer team. I hope team will assist you.

-Thanks

Log in to reply.