Update on v2.0.1 (changes towards the next release)
Here's an update on the current version, which includes changes towards the next release still in development.
This commit is contained in:
parent
3b961b27cf
commit
eafedd6b66
@ -14,7 +14,8 @@ defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\Form\Form;
|
||||
use Joomla\CMS\Plugin\CMSPlugin;
|
||||
use VDM\Joomla\Utilities\ArrayHelper;
|
||||
use VDM\Joomla\Utilities\ArrayHelper;
|
||||
use Joomla\CMS\Component\ComponentHelper;
|
||||
|
||||
JLoader::register('ComponentbuilderHelper', JPATH_ADMINISTRATOR . '/components/com_componentbuilder/helpers/componentbuilder.php');
|
||||
|
||||
@ -57,7 +58,7 @@ class PlgContentComponentbuilderComponentHeadersTabs extends CMSPlugin
|
||||
// add the admin view params for privacy integration
|
||||
$form->loadFile('joomla_component');
|
||||
// update all editors to use this components global editor
|
||||
$global_editor = \JComponentHelper::getParams('com_componentbuilder')->get('editor', 'none');
|
||||
$global_editor = ComponentHelper::getParams('com_componentbuilder')->get('editor', 'none');
|
||||
// set the field editor value (with none as fallback)
|
||||
$editors = $form->getXml()->xpath('descendant::fields[@name="joomla_component_headers"]//field[@type="editor"]');
|
||||
// check if we found any
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<extension type="plugin" version="3.10" group="content" method="upgrade">
|
||||
<name>PLG_CONTENT_COMPONENTBUILDERCOMPONENTHEADERSTABS</name>
|
||||
<creationDate>24th April, 2024</creationDate>
|
||||
<creationDate>27th April, 2024</creationDate>
|
||||
<author>Llewellyn van der Merwe</author>
|
||||
<authorEmail>joomla@vdm.io</authorEmail>
|
||||
<authorUrl>https://dev.vdm.io</authorUrl>
|
||||
|
Loading…
Reference in New Issue
Block a user