Make SPPB work with Translate plugin default - Forum | JoomShaper
Staff replied SP Page Builder

Make SPPB work with Translate plugin default

Asked by Rakesh 5 years ago Last activity 5 years ago

Can you please implement this within SPPB so the Translate Plugin works right out of the box (install).

// Addon List
$addons_list    = SpAddonsConfig::$addons;

//sbou
Joomla\CMS\Plugin\PluginHelper::importPlugin('system','sppagebuildertranslate');
//fin sbou

foreach ( $addons_list as $key => &$addon ) {
   $default_value = SpPgaeBuilderBase::getSettingsDefaultValue($addon['attr']);
   $addon['default'] = $default_value['default'];
   //sbou
   Joomla\CMS\Factory::getApplication()->triggerEvent('onBeforeAddonConfigure', array($key, &$addon));
   //fin sbou
}

$globalDefault = SpPgaeBuilderBase::getSettingsDefaultValue($global_attributes);

The file is modules/mod_sppagebuilder/fields/pagebuilder.php

This would be very helpful since it is the best tool for translating SPPB.

Thanks!

1 reply

Ofi Khan Staff

Hello Rakesh

Thanks for sharing it. I will forward to the developer team for attention.

Best regards

Log in to reply.