{"id":20770473,"url":"https://github.com/codemonauts/craft-customizable-radio-buttons-field","last_synced_at":"2025-04-30T13:50:10.914Z","repository":{"id":47397143,"uuid":"179799800","full_name":"codemonauts/craft-customizable-radio-buttons-field","owner":"codemonauts","description":"Radio buttons field for Craft CMS, customizable with CSS classes, icons, images and text","archived":false,"fork":false,"pushed_at":"2024-07-24T15:28:39.000Z","size":122,"stargazers_count":6,"open_issues_count":3,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-15T17:44:44.385Z","etag":null,"topics":["cms","craft","craft-plugin","craftcms","field","fontawesome","radio-buttons"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codemonauts.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-04-06T07:00:00.000Z","updated_at":"2024-08-07T15:41:25.000Z","dependencies_parsed_at":"2022-08-21T04:40:31.267Z","dependency_job_id":null,"html_url":"https://github.com/codemonauts/craft-customizable-radio-buttons-field","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemonauts%2Fcraft-customizable-radio-buttons-field","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemonauts%2Fcraft-customizable-radio-buttons-field/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemonauts%2Fcraft-customizable-radio-buttons-field/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemonauts%2Fcraft-customizable-radio-buttons-field/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codemonauts","download_url":"https://codeload.github.com/codemonauts/craft-customizable-radio-buttons-field/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251714718,"owners_count":21631777,"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":["cms","craft","craft-plugin","craftcms","field","fontawesome","radio-buttons"],"created_at":"2024-11-17T12:09:43.001Z","updated_at":"2025-04-30T13:50:10.885Z","avatar_url":"https://github.com/codemonauts.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Customizable Radio Buttons Field for Craft CMS\n\n![Icon](resources/buttons.png)\n\nA field type that add customizable radio buttons to Craft CMS.\n\n## Background\n\nPictures say more than many words. With this plugin you can add radio buttons as fields, which can be images, icons, CSS classes, texts or a combination of them.\n\n## Requirements\n\n * Craft CMS \u003e= 4.0.0\n\n## Installation\n\nOpen your terminal and go to your Craft project:\n\n``` shell\ncd /path/to/project\ncomposer require codemonauts/craft-customizable-radio-buttons-field\n```\n\nIn the control panel, go to Settings → Plugins and click the “install” button for *Customizable radio buttons field*.\n\n## Configuration\n\nCopy the ```config.php``` to your config folder as ```buttons.php```. Then add button groups like this:\n\n``` php\n\u003c?php\n\nreturn [\n  'cssFile' =\u003e '@config/path/to/my.css', // optional path to a local CSS file. This will be automatically published.\n  'cssUrl' =\u003e 'https://example.com/awesome.css' // Optional URL to an external CSS.\n  'buttonGroups' =\u003e [\n    'myhandle' =\u003e [\n      'name' =\u003e 'My awesome buttons', // The name in the field's configuration dialog.\n      'buttons' =\u003e [\n        'handle-button-1' =\u003e [\n          'image' =\u003e '@buttonsAssets/myimage.jpg', // Optional Image, overwrites 'label'.\n          'title' =\u003e 'My button 1', // Title and Alt Attributes.\n          'value' =\u003e 'myvalue', // The value to store (string)\n          'class' =\u003e 'myclass', // Optional class(es) to add to the button.\n          'label' =\u003e 'abc', // The button's text, will be overwritten when an image is set.\n        ],\n        'handle-button-2' =\u003e [\n          // ...\n        ],\n        // ...\n      ],\n      // ...\n    ],\n  ],\n];\n``` \n\nYou can have multiple button groups. They all share the same CSS file or CSS URL you can configure. See the [examples](examples/README.md).\n\nWith ❤ by [codemonauts](https://codemonauts.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodemonauts%2Fcraft-customizable-radio-buttons-field","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodemonauts%2Fcraft-customizable-radio-buttons-field","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodemonauts%2Fcraft-customizable-radio-buttons-field/lists"}