{"id":20961811,"url":"https://github.com/heimrichhannot/contao-multi-column-editor-bundle","last_synced_at":"2025-08-18T13:03:40.605Z","repository":{"id":52679974,"uuid":"132482375","full_name":"heimrichhannot/contao-multi-column-editor-bundle","owner":"heimrichhannot","description":"This module offers an input type for editing one or more records in frontend and backend.","archived":false,"fork":false,"pushed_at":"2025-05-06T05:50:28.000Z","size":24965,"stargazers_count":6,"open_issues_count":3,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-08-08T17:36:42.814Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/heimrichhannot.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-05-07T15:42:39.000Z","updated_at":"2025-05-06T05:50:26.000Z","dependencies_parsed_at":"2023-01-23T14:00:28.474Z","dependency_job_id":"bffdc45c-bcc3-4519-abf0-fe22c722d5bc","html_url":"https://github.com/heimrichhannot/contao-multi-column-editor-bundle","commit_stats":{"total_commits":115,"total_committers":15,"mean_commits":7.666666666666667,"dds":0.6521739130434783,"last_synced_commit":"21fa4fd4ae84e5b592e41c88f9beeb41da9bf449"},"previous_names":[],"tags_count":98,"template":false,"template_full_name":null,"purl":"pkg:github/heimrichhannot/contao-multi-column-editor-bundle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heimrichhannot%2Fcontao-multi-column-editor-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heimrichhannot%2Fcontao-multi-column-editor-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heimrichhannot%2Fcontao-multi-column-editor-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heimrichhannot%2Fcontao-multi-column-editor-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heimrichhannot","download_url":"https://codeload.github.com/heimrichhannot/contao-multi-column-editor-bundle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heimrichhannot%2Fcontao-multi-column-editor-bundle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270989128,"owners_count":24680683,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-18T02:00:08.743Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-19T02:17:38.313Z","updated_at":"2025-08-18T13:03:40.543Z","avatar_url":"https://github.com/heimrichhannot.png","language":"PHP","readme":"# Multi Column Editor bundle\n\n[![](https://img.shields.io/packagist/v/heimrichhannot/contao-multi-column-editor-bundle.svg)](https://packagist.org/packages/heimrichhannot/contao-multi-column-editor-bundle)\n[![](https://img.shields.io/packagist/dt/heimrichhannot/contao-multi-column-editor-bundle.svg)](https://packagist.org/packages/heimrichhannot/contao-multi-column-editor-bundle)\n[![](https://img.shields.io/travis/heimrichhannot/contao-multi-column-editor-bundle/master.svg)](https://travis-ci.org/heimrichhannot/contao-multi-column-editor-bundle/)\n[![](https://img.shields.io/coveralls/heimrichhannot/contao-multi-column-editor-bundle/master.svg)](https://coveralls.io/github/heimrichhannot/contao-multi-column-editor-bundle)\n\nThis module offers an input type for editing one or more records in backend and frontend.\n\n![alt text](doc/presentation.gif \"Demo in the backend\")\n\n## Features\n* input type to edit one or multiple records\n* support for backend and frontend\n* [Encore bundle](https://github.com/heimrichhannot/contao-encore-bundle) support\n\n## Install \n\nInstall with composer: \n\n    composer require heimrichhannot/contao-multi-column-editor-bundle\n\n## Technical instructions\n\nUse the inputType \"multiColumnEditor\" for your field.\n\nMinimal example:\n\n```php\n$GLOBALS['TL_DCA']['tl_my_table']['fields']['mce_field'] = [\n    'inputType' =\u003e 'multiColumnEditor',\n    'eval'      =\u003e [\n        'multiColumnEditor' =\u003e [\n            'fields' =\u003e [\n                'field1' =\u003e [\n                    'label' =\u003e \u0026$GLOBALS['TL_LANG']['tl_my_table']['field1'],\n                    'inputType' =\u003e 'text',\n                    'eval' =\u003e ['groupStyle' =\u003e 'width:150px']\n                ],\n                'field2' =\u003e [\n                    'label' =\u003e \u0026$GLOBALS['TL_LANG']['tl_my_table']['field2'],\n                    'inputType'               =\u003e 'select',\n                    'options'                 =\u003e ['option1', 'option2'],\n                    'eval' =\u003e ['groupStyle' =\u003e 'width:150px']\n                ],\n            ]\n        ]\n    ],\n    'sql'       =\u003e \"blob NULL\"\n];\n````\n\n### All available options\n\n```php\n'someField' =\u003e [\n    'label'     =\u003e \u0026$GLOBALS['TL_LANG']['tl_my_table']['someField'],\n    'inputType' =\u003e 'multiColumnEditor',\n    'exclude'   =\u003e true,\n    // add 'compact' to tl_class if you want to display a reduced version of MCE\n    'tl_class'  =\u003e 'compact', \n    'eval'      =\u003e [\n        'multiColumnEditor' =\u003e [\n            // set to true if the rows should be sortable (backend only atm)\n            'sortable' =\u003e true,\n            'class' =\u003e 'some-class',\n            // set to 0 if it should also be possible to have *no* row (default: 1)\n            'minRowCount' =\u003e 2,\n            // set to 0 if an infinite number of rows should be possible (default: 0)\n            'maxRowCount' =\u003e 5,\n            // defaults to false\n            'skipCopyValuesOnAdd' =\u003e false,\n            'editorTemplate' =\u003e 'multi_column_editor_backend_default',\n            // Optional: add palette and subpalette if you need supalettes support (otherwise all fields will be shows)\n            // Legends are supported since verison 2.8\n            'palettes'    =\u003e [\n                '__selector__' =\u003e ['field1'],\n                'default'      =\u003e 'field1',\n            ],\n            'subpalettes' =\u003e [\n                'field1'  =\u003e 'field2', // key selector\n                'field1_10' =\u003e 'field3' // key_value selector\n            ],\n            // place your fields here as you would normally in your DCA\n            // (sql is not required)\n            'fields' =\u003e [\n                \n                'field1' =\u003e [\n                    'label' =\u003e ['field 1', 'The description of field 1'],\n                    'inputType' =\u003e 'text',\n                    'eval' =\u003e ['groupStyle' =\u003e 'width:150px', 'submitOnChange' =\u003e true]\n                ],\n                'field2' =\u003e [\n                    'label' =\u003e ['field 2', 'The description of field 2'],\n                    'inputType' =\u003e 'text',\n                    'eval' =\u003e ['groupStyle' =\u003e 'width:150px']\n                ],\n                'field3' =\u003e [\n                    'label' =\u003e ['field 3', 'The description of field 3'],\n                    'inputType' =\u003e 'text',\n                    'eval' =\u003e ['groupStyle' =\u003e 'width:150px']\n                ]\n            ]\n        ]\n    ],\n    'sql'       =\u003e \"blob NULL\"\n],\n```\n\n| Option   | Values  | Description                       |\n|----------|---------|-----------------------------------|\n| tl_class | compact | Display a reduced version of MCE. |\n\n\n### Add support for special fields (like fileTrees) in Rocksolid Custom Content Elements (RSCE)\n\nSimply add the following to your project's `config.php`:\n\n```\n$GLOBALS['MULTI_COLUMN_EDITOR']['rsce_fields'] = array_merge(\n    is_array($GLOBALS['MULTI_COLUMN_EDITOR']['rsce_fields']) ? $GLOBALS['MULTI_COLUMN_EDITOR']['rsce_fields'] : [], [\n        'tl_content' =\u003e ['linkImage']\n    ]\n);\n```\n\nwhere this would be your RSCE config:\n\n```\n$element = [\n     // ...\n    'fields'          =\u003e [\n        'links'              =\u003e [\n            'label'     =\u003e \u0026$GLOBALS['TL_LANG']['tl_content']['links'],\n            'inputType' =\u003e 'multiColumnEditor',\n            'eval'      =\u003e [\n                'tl_class'          =\u003e 'long clr',\n                'multiColumnEditor' =\u003e [\n                    'minRowCount' =\u003e 0,\n                    'fields'      =\u003e [\n                        'linkImage'     =\u003e [\n                            // ...\n                            'inputType'               =\u003e 'fileTree',\n                        ],\n    // ...\n```\n\n## Developers\n\n### Assets\nBundle assets are provided as [yarn package](https://yarnpkg.com/en/package/@hundh/contao-multi-column-editor-bundle). Sources and Javascript documentation can be found in [`src/Resources/npm-package`](/tree/master/src/Resources/npm-package).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheimrichhannot%2Fcontao-multi-column-editor-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheimrichhannot%2Fcontao-multi-column-editor-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheimrichhannot%2Fcontao-multi-column-editor-bundle/lists"}