{"id":20961752,"url":"https://github.com/heimrichhannot/contao-be_explanation-bundle","last_synced_at":"2025-07-31T11:42:33.602Z","repository":{"id":62515433,"uuid":"124081089","full_name":"heimrichhannot/contao-be_explanation-bundle","owner":"heimrichhannot","description":"This bundle offers a simple backend explanation form field (inputType).","archived":false,"fork":false,"pushed_at":"2024-03-11T08:19:32.000Z","size":175,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-05-28T06:23:42.512Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"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":null,"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-03-06T13:18:53.000Z","updated_at":"2024-03-11T07:31:40.000Z","dependencies_parsed_at":"2024-03-11T08:51:45.551Z","dependency_job_id":null,"html_url":"https://github.com/heimrichhannot/contao-be_explanation-bundle","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/heimrichhannot/contao-be_explanation-bundle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heimrichhannot%2Fcontao-be_explanation-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heimrichhannot%2Fcontao-be_explanation-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heimrichhannot%2Fcontao-be_explanation-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heimrichhannot%2Fcontao-be_explanation-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heimrichhannot","download_url":"https://codeload.github.com/heimrichhannot/contao-be_explanation-bundle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heimrichhannot%2Fcontao-be_explanation-bundle/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263973077,"owners_count":23537962,"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","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:16:28.473Z","updated_at":"2025-07-06T21:04:50.643Z","avatar_url":"https://github.com/heimrichhannot.png","language":"PHP","readme":"![](https://img.shields.io/packagist/v/heimrichhannot/contao-be_explanation-bundle.svg)\n![](https://img.shields.io/packagist/dt/heimrichhannot/contao-be_explanation-bundle.svg)\n\n# Backend Explanation Bundle\n\nThis bundle offers a simple backend explanation form field (inputType).\n\n## Technical instructions\n\nJust add the field to some of your data container arrays as follows:\n\n```php\nuse AppBundle\\EventListener\\Dca\\TableListener;\n\n$GLOBALS['TL_DCA']['tl_table']['fields']['myExplanation'] = [\n    'inputType' =\u003e 'explanation',\n    'eval'      =\u003e [\n        'text'          =\u003e \u0026$GLOBALS['TL_LANG']['tl_table']['explanation']['myExplanation'], // this is a string, not an array\n        'text_callback' =\u003e [TableListener::class, 'onTextCallback'], // a callback to dynamical generate text. Can also be a callable.\n        'class'         =\u003e 'tl_info', // all contao message css classes are possible\n        'tl_class'      =\u003e 'w50 long',\n        'collapsible'   =\u003e true // If text is to long, if will be collapsed\n    ]\n];\n```\n\n#### Text Callback\n\nThe callback gets the `$attributes` array from the widget constructor as parameter, which containers the widget config and the current DataContainer.\n\nExample: \n\n```php\npublic function textCallback(array $attributes): string {\n    $dc = $attributes[\"dataContainer\"];\n    $text = $attributes[\"text\"];\n    return \"My new text\";\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheimrichhannot%2Fcontao-be_explanation-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheimrichhannot%2Fcontao-be_explanation-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheimrichhannot%2Fcontao-be_explanation-bundle/lists"}