Adds functionality to the native Matrix field type.
This plugin requires Craft CMS 5.1.0 or later, and PHP 8.2 or later.
You can install this plugin from the Plugin Store or with Composer.
Go to the Plugin Store in your project’s Control Panel and search for “Matrix Extended”. Then press “Install”.
Open your terminal and run the following commands:
# go to the project directory
cd /path/to/my-project.test
# tell Composer to load the plugin
composer require vandres/craft-matrix-extended
# tell Craft to install the plugin
./craft plugin/install matrix-extended
You can use the settings dialog in the control panel. But I would recommend creating a matrix-extended.php
in your config folder.
That is also the only way (for now), to configure the group buttons. That could look like this:
return [
'extraDeleteButton' => true,
'experimentalFeatures' => true,
'enableDragDrop' => false,
'expandMenu' => true,
'expandUngrouped' => false,
'ungroupedPosition' => 'start',
'fields' => [
'dyncontent' => [ // matrix field handle
'groups' => [
[
'label' => \Craft::t('app', 'Simple'),
'types' => ['header', 'text'], // entry type handles
],
],
],
'simplecontent' => [ // matrix field handle
'oneLiner' => true, // prevent buttons from wrapping
'groups' => [
[
'label' => \Craft::t('app', 'Simple'),
'types' => ['header', 'text'], // entry type handles
],
],
]
]
];
canAddMoreEntries
canAddMoreEntries
PayPal: https://www.paypal.com/donate/?hosted_button_id=3WDU85HZCKMPA
Buy me a coffee: https://buymeacoffee.com/vandres