{"id":18369999,"url":"https://github.com/statamic/bardify","last_synced_at":"2025-04-10T19:44:46.462Z","repository":{"id":146133508,"uuid":"117154296","full_name":"statamic/bardify","owner":"statamic","description":"Convert Replicator fields to Bard fields","archived":false,"fork":false,"pushed_at":"2018-06-26T18:04:26.000Z","size":7,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-02-15T20:57:08.324Z","etag":null,"topics":["addon","bard","medium","rich-rext","statamic","statamic-addon","statamic-v2"],"latest_commit_sha":null,"homepage":null,"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/statamic.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2018-01-11T21:14:24.000Z","updated_at":"2024-01-04T01:48:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"56f79920-6cc0-41da-8e48-e478f67ab075","html_url":"https://github.com/statamic/bardify","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statamic%2Fbardify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statamic%2Fbardify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statamic%2Fbardify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statamic%2Fbardify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/statamic","download_url":"https://codeload.github.com/statamic/bardify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248281425,"owners_count":21077423,"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":["addon","bard","medium","rich-rext","statamic","statamic-addon","statamic-v2"],"created_at":"2024-11-05T23:35:03.980Z","updated_at":"2025-04-10T19:44:46.438Z","avatar_url":"https://github.com/statamic.png","language":"PHP","readme":"## Overview\nBard fields are just like Replicator fields, except that the \"text\" blocks are implied and saved as `text` in your content.\n\nFor example you may have a Replicator field in your fieldset where you use your \"text\" set like this:\n\n``` yaml\nfields:\n  story:\n    type: replicator\n    sets:\n      content:  # The \"text\" set. It's the one with just a single text based field.\n        fields:\n          html:\n            type: redactor\n      quote:\n        fields:\n          quote:\n            type: text\n          cite:\n            type: text\n```\n\nand your data would be saved like this:\n\n``` yaml\nstory:\n  -\n    type: text\n    html: \"\u003cp\u003eThis is my story\u003c/p\u003e\"\n  -\n    type: quote\n    quote: Oh Hai Mark\n    cite: Tommy Wiseau\n```\n\nTo change to Bard, you'd need to replace your `content`/`html` set to `text`/`text`.\n\n``` yaml\nstory:\n  -\n    type: text\n    text: \"\u003cp\u003eThis is my story\u003c/p\u003e\"\n  -\n    type: quote\n    quote: Oh Hai Mark\n    cite: Tommy Wiseau\n```\n\nSimple enough, but tedious to do it for all your entries.\n\n**If you happened to already call your text set `text` with a field named `text` - you're in luck and don't need to change anything.**\n\n## Usage\n\n\u003e Note: This modifies your data, so consider making a backup first.\n\n\u003e Another Note: This doesn't support multiple locales yet.\n\nDownload this repo and place it in `site/addons/Bardify` and run this command:\n\n```\nphp please bardify\n```\n\nIt will automate the following:\n\n- Go through any relevant content files and change the types/fields.\n- Remove the \"text\" set from the Replicator field.\n- Change `type: replicator` to `type: bard`. (Wow!)\n- If you were using a markdown fieldtype for the text field, it will add `markdown: true` to the Bard field.\n\n\n## Converting content fields to Bard\n\nYou may also convert your `content` field (the text below your YAML front-matter) into a Bard field by running the following command:\n\n```\nphp please bardify:content\n```\n\nIt will automate the following:\n- Go through any relevant content files and replace the content text with the field name of your choice.\n- If you were using a markdown fieldtype, it will add `markdown: true` to the Bard field.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstatamic%2Fbardify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstatamic%2Fbardify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstatamic%2Fbardify/lists"}