{"id":13606953,"url":"https://github.com/Flynsarmy/wn-contentblocks-plugin","last_synced_at":"2025-04-12T11:31:04.167Z","repository":{"id":141194550,"uuid":"358763699","full_name":"Flynsarmy/wn-contentblocks-plugin","owner":"Flynsarmy","description":"Allow clients to update content blocks directly from the layouts/pages/partials that use them.","archived":false,"fork":false,"pushed_at":"2021-04-18T06:53:33.000Z","size":135,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T20:29:13.378Z","etag":null,"topics":[],"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/Flynsarmy.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}},"created_at":"2021-04-17T02:08:26.000Z","updated_at":"2022-10-10T18:46:48.000Z","dependencies_parsed_at":"2024-01-14T05:17:04.273Z","dependency_job_id":null,"html_url":"https://github.com/Flynsarmy/wn-contentblocks-plugin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flynsarmy%2Fwn-contentblocks-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flynsarmy%2Fwn-contentblocks-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flynsarmy%2Fwn-contentblocks-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flynsarmy%2Fwn-contentblocks-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Flynsarmy","download_url":"https://codeload.github.com/Flynsarmy/wn-contentblocks-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248560069,"owners_count":21124589,"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-08-01T19:01:14.136Z","updated_at":"2025-04-12T11:31:03.776Z","avatar_url":"https://github.com/Flynsarmy.png","language":"PHP","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"readme":"# Content Blocks\n\nAllow clients to update content blocks directly from the layouts/pages/partials that use them.\n\n![](https://github.com/Flynsarmy/wn-contentblocks-plugin/blob/master/assets/images/marketplace/content-tab.png?raw=true)\n\n## Description\n\nIt's cumbersome to go to the *CMS - Content* section, create a content block, get its filename then add the block to your layout/page/partial. Then every time you want to edit the block you need to head back to the *Content* area and find the correct one to update. \n\nWith this plugin you can simply reference your content blocks in the markup area and they'll appear in a new *Content* tab right there on the layout/page/partial you're currently working on. Magic!\n\n## Installation\n\n* `git clone` into */plugins/flynsarmy/contentblocks*\n\n## Usage\n\nSimply add a `{% content 'myblock.htm' %}` to your layout/page/partial markup and save. The content block will appear in the *Content* tab.\n\n* HTML, Markdown and Text content blocks are all supported.\n* Saving your layout/page/partial will automatically create content blocks that don't already exist.\n* If you pass variables to your content blocks, the available variables will be displayed next to that block on the *Content* tab.\n\n## Limitations\n\n* You'll need to close/re-open the layout/page/partial tab in CMS area when adding/removing content blocks in the markup section. Just save, close then re-open the tab.\n\n## Future Improvements\n\n* Add CMS permissions to hide all fields clients shouldn't have access to - so they can just go to CMS - Pages - Homepage and only the content blocks will appear for them.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFlynsarmy%2Fwn-contentblocks-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FFlynsarmy%2Fwn-contentblocks-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFlynsarmy%2Fwn-contentblocks-plugin/lists"}