{"id":16124266,"url":"https://github.com/jongacnik/kirby-fields-block","last_synced_at":"2025-04-07T18:14:24.508Z","repository":{"id":42058851,"uuid":"368031473","full_name":"jongacnik/kirby-fields-block","owner":"jongacnik","description":"Kirby block preview plugin to directly render block fields","archived":false,"fork":false,"pushed_at":"2023-03-31T18:33:45.000Z","size":40,"stargazers_count":109,"open_issues_count":5,"forks_count":5,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-31T15:20:29.303Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/jongacnik.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2021-05-17T02:22:10.000Z","updated_at":"2024-03-16T10:50:57.000Z","dependencies_parsed_at":"2024-06-21T13:11:28.562Z","dependency_job_id":"482f481a-d9b3-42e2-b06f-78b87a6764fc","html_url":"https://github.com/jongacnik/kirby-fields-block","commit_stats":{"total_commits":14,"total_committers":4,"mean_commits":3.5,"dds":0.3571428571428571,"last_synced_commit":"21d62086685a04edc44f0947a8a25e90f51ad479"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jongacnik%2Fkirby-fields-block","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jongacnik%2Fkirby-fields-block/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jongacnik%2Fkirby-fields-block/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jongacnik%2Fkirby-fields-block/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jongacnik","download_url":"https://codeload.github.com/jongacnik/kirby-fields-block/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247704571,"owners_count":20982298,"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-10-09T21:20:21.307Z","updated_at":"2025-04-07T18:14:24.455Z","avatar_url":"https://github.com/jongacnik.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kirby Fields Block\n\nKirby [block preview](https://getkirby.com/docs/reference/plugins/extensions/blocks) plugin to directly render block fields, allowing for inline editing.\n\n\u003cimg src=\"https://files.jongacnik.com/kirby-fields-preview-1.png\" width=\"975\" height=\"auto\" /\u003e\n\n## Usage\n\n### Block definition\n\nWhen creating a custom block in your blueprints, pass `preview: fields` to utilize this plugin\n\n```yaml\nblockname:\n  name: Block Name\n  preview: fields # required\n  wysiwyg: true # recommended\n  fields:\n    text:\n      label: Text\n      type: text\n```\n\nSetting `wysiwyg: true` prevents drawer from automatically opening when creating a new block.\n\n### Disable block title\n\nYou can disable the block title bar by passing `label: false`\n\n```yaml\nblockname:\n  name: Block Name\n  preview: fields\n  wysiwyg: true \n  label: false # disables block title bar\n  fields:\n    text:\n      label: Text\n      type: text\n```\n\n\u003cdetails\u003e\n  \u003csummary\u003eExample\u003c/summary\u003e\n  \u003cimg src=\"https://files.jongacnik.com/kirby-fields-preview-2.png\" width=\"975\" height=\"auto\" /\u003e\n\u003c/details\u003e\n\n### Collapse/Expand block\n\nYou can collapse or expand the block preview by clicking on the arrow icon or double clicking the block title bar.\n\n## Notes\n\n- The block `icon` will appear in the title bar.\n- Currently does not support blocks with tabs.\n\n## Installation\n\n```\ncomposer require jg/kirby-fields-block\n```\n\n\u003cdetails\u003e\n  \u003csummary\u003eOther installation methods\u003c/summary\u003e\n\n### Download\n\nDownload and copy this repository to `/site/plugins/kirby-fields-block`.\n\n### Git submodule\n\n```\ngit submodule add https://github.com/jongacnik/kirby-fields-block.git site/plugins/kirby-fields-block\n```\n\u003c/details\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjongacnik%2Fkirby-fields-block","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjongacnik%2Fkirby-fields-block","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjongacnik%2Fkirby-fields-block/lists"}