{"id":17046622,"url":"https://github.com/sebobo/shel.neos.previewselectbox","last_synced_at":"2025-10-24T07:32:11.247Z","repository":{"id":57049172,"uuid":"371021355","full_name":"Sebobo/Shel.Neos.PreviewSelectBox","owner":"Sebobo","description":"Selectbox variant for NeosCMS allowing custom previews","archived":false,"fork":false,"pushed_at":"2023-10-04T19:45:30.000Z","size":186,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-28T02:20:37.352Z","etag":null,"topics":["neos-cms"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/Sebobo.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":"FUNDING.yml","license":"LICENSE.txt","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},"funding":{"patreon":"shelzle","github":"sebobo"}},"created_at":"2021-05-26T12:12:39.000Z","updated_at":"2023-10-04T19:42:11.000Z","dependencies_parsed_at":"2025-04-12T15:50:29.240Z","dependency_job_id":null,"html_url":"https://github.com/Sebobo/Shel.Neos.PreviewSelectBox","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"0e2b1ebf55c3f63def7b8593a9052ce37333976d"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/Sebobo/Shel.Neos.PreviewSelectBox","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sebobo%2FShel.Neos.PreviewSelectBox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sebobo%2FShel.Neos.PreviewSelectBox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sebobo%2FShel.Neos.PreviewSelectBox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sebobo%2FShel.Neos.PreviewSelectBox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sebobo","download_url":"https://codeload.github.com/Sebobo/Shel.Neos.PreviewSelectBox/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sebobo%2FShel.Neos.PreviewSelectBox/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266507366,"owners_count":23940055,"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-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["neos-cms"],"created_at":"2024-10-14T09:46:55.564Z","updated_at":"2025-10-24T07:32:11.188Z","avatar_url":"https://github.com/Sebobo.png","language":"JavaScript","funding_links":["https://patreon.com/shelzle","https://github.com/sponsors/sebobo"],"categories":[],"sub_categories":[],"readme":"# Neos CMS selectbox editor with preview\n\nThis plugin adds a new variant of the Neos selectbox editor that supports `preview` properties on options\nand shows those when selecting an items in the selectbox.\n                                        \nIn Neos CMS only the `AssetEditor` and `NodeEditor` have this feature and\nit's not possible yet to use this for other data types.\n\n⚠️ This feature is integrated into Neos CMS (7.3+) and this plugin allows to use it for older Neos versions 4.3+.\nCheck the [pull request](https://github.com/neos/neos-ui/pull/2930) and related issue for details.\nNo new features will be added to this package and it will be archived, when Neos 7.3 is EOL!\n\n![Example](example.jpg)\n\n## Installation\n\nInstall the package `shel/neos-previewselectbox` via composer as\ndependency of your sitepackage.\n                    \n## How to use\n\nInstead of setting the `icon` property for each value, you set `preview` to an absolute uri.\n\n⚠️ Relative uris might work, but are not officially supported, as they might not resolve in a reliable way depending on the hosting environment.\n\n### With a datasource\n\nMake sure the datasource returns a `preview` property with an absolute url\nfor each item returned.\n\n```yaml\n'My.Vendor:Content.Something':\n  superTypes:\n    Neos.Neos:Content: true\n  ui:\n    label: i18n\n  properties:\n    icon:\n      type: string\n      ui:\n        label: 'Icon'\n        reloadIfChanged: true\n        inspector:\n          group: icon\n          editor: Shel.Neos/PreviewSelectBoxEditor\n          editorOptions:\n            placeholder: Select an icon\n            allowEmpty: true\n            dataSourceIdentifier: my-icon-datasource\n```\n\n### Without datasource\n\n```yaml\n'My.Vendor:Content.Something':\n  superTypes:\n    Neos.Neos:Content: true\n  ui:\n    label: i18n\n  properties:\n    icon:\n      type: string\n      ui:\n        label: 'Icon'\n        reloadIfChanged: true\n        inspector:\n          group: icon\n          editor: Shel.Neos/PreviewSelectBoxEditor\n          editorOptions:\n            placeholder: Select an icon\n            allowEmpty: true\n            values:\n              'foo':\n                label: Foo\n                preview: https://some.url/my-foo-icon.svg\n              'bar':\n                label: Bar\n                preview: https://some.url/my-bar-icon.svg\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebobo%2Fshel.neos.previewselectbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsebobo%2Fshel.neos.previewselectbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebobo%2Fshel.neos.previewselectbox/lists"}