承接 vandres/craft-matrix-extended 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

vandres/craft-matrix-extended

Composer 安装命令:

composer require vandres/craft-matrix-extended

包简介

Adds functionality to the native Matrix field type

README 文档

README

Adds functionality to the native Matrix field type.

Feature Overview

  • Grouping of entry types
    • Unfold or group ungrouped types
  • Supported View Modes:
    • Inline-Editable Blocks: Yes
    • Cards: Yes (requires Craft 5.5.5+)
    • Element-Index: No
  • Drag&Drop of entries, also in between entry types (experimental)

Requirements

This plugin requires Craft CMS 5.1.0 or later, and PHP 8.2 or later.

Installation

You can install this plugin from the Plugin Store or with Composer.

From the Plugin Store

Go to the Plugin Store in your project’s Control Panel and search for “Matrix Extended”. Then press “Install”.

With Composer

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

Configuration

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 [
    'removeEntryTypesFromDiscloseMenu' => true,
    'enableDragDrop' => false,
    'enableAddBlockAbove' => true,
    'expandMenu' => true,
    'expandUngrouped' => true,
    'ungroupedPosition' => 'start', // start, end or hidden
    '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
                ],
            ],
        ]
    ]
];

Important updates

v4 -> v5

The feature "Copy&Paste", "Add Block Above" and "Duplicate" have been removed. With it, a lot of configuration is gone. So please check the supported configuration options from the README.

This was the core feature of the plugin, but has meanwhile be implemented natively. What remains is the grouping of Entry Types and the experimental Drag&Drop support.

v3 -> v4

In v3, the plugin worked around saved entries. In v4, the plugin is working around drafts. Keep in mind, that drafts might disappear, when saved or discarded (Copy&Paste).

Support my work

PayPal: https://www.paypal.com/donate/?hosted_button_id=3WDU85HZCKMPA

Buy me a coffee: https://buymeacoffee.com/vandres

Supporter

  1. Ambition Creative: Support for cards
  2. Ambition Creative: Icons

vandres/craft-matrix-extended 适用场景与选型建议

vandres/craft-matrix-extended 是一款 基于 TypeScript 开发的 Composer 扩展包,目前已累计 3.23k 次下载、GitHub Stars 达 7, 最近一次更新时间为 2024 年 04 月 29 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 vandres/craft-matrix-extended 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 vandres/craft-matrix-extended 我们能提供哪些服务?
定制开发 / 二次开发

基于 vandres/craft-matrix-extended 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 3.23k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 7
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 7
  • Watchers: 2
  • Forks: 1
  • 开发语言: TypeScript

其他信息

  • 授权协议: proprietary
  • 更新时间: 2024-04-29