{"id":20766779,"url":"https://github.com/chapter-three/blockreference-toggle","last_synced_at":"2026-04-20T08:02:26.728Z","repository":{"id":144983504,"uuid":"21185327","full_name":"chapter-three/blockreference-toggle","owner":"chapter-three","description":"Uses fields that reference blocks to be restricted to only one block, and can be toggled to display on or off  on a per node basis","archived":false,"fork":false,"pushed_at":"2014-07-31T00:01:24.000Z","size":284,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":38,"default_branch":"master","last_synced_at":"2025-03-11T18:56:01.818Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chapter-three.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}},"created_at":"2014-06-25T00:39:43.000Z","updated_at":"2014-06-30T13:00:41.000Z","dependencies_parsed_at":"2023-03-22T22:16:02.865Z","dependency_job_id":null,"html_url":"https://github.com/chapter-three/blockreference-toggle","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chapter-three/blockreference-toggle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chapter-three%2Fblockreference-toggle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chapter-three%2Fblockreference-toggle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chapter-three%2Fblockreference-toggle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chapter-three%2Fblockreference-toggle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chapter-three","download_url":"https://codeload.github.com/chapter-three/blockreference-toggle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chapter-three%2Fblockreference-toggle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32038455,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":[],"created_at":"2024-11-17T11:26:08.769Z","updated_at":"2026-04-20T08:02:26.691Z","avatar_url":"https://github.com/chapter-three.png","language":"PHP","readme":"Block reference toggle README\n\nCONTENTS OF THIS FILE\n---------------------\n * Introduction\n * Requirements\n * Installation\n * Configuration\n * Usage\n * Maintainers\n\n\nINTRODUCTION\n------------\nDefines a widget type called ‘Toggle Radio’ for the field ‘Block Reference.’\nThis widget allows that ONE block to be toggled ‘show’ or ‘hide’ on a PER NODE basis.\n\nThe regular widgets that come with Block Reference allows you choose one block from\nso many blocks on the node edit form. This is useful when you want to show a different\nblock for every node. But when you want to ensure that only ONE BLOCK can be displayed\nfor that field, and you want to restrict the editor to be able to only hide or show\nthe block, then you need this module.\n\n\nREQUIREMENTS\n------------\nThis module requires the following modules:\n * Block Reference 2.0 and above only (https://drupal.org/project/blockreference)\n  IMPORTANT: This module is not compatible with Block Reference 1.0.\n\n\nINSTALLATION\n------------\n * Install as you would normally install a contributed drupal module. See:\n   https://drupal.org/documentation/install/modules-themes/modules-7\n   for further information.\n\n\nCONFIGURATION\n-------------\n * TO DO\n\n\nUSAGE\n-----\n1. Create a field using ‘Block Reference’ as the field type. Select the widget ‘Toggle Radio’\n2. Configure the widget settings as you would any other field.\n   a. Set the default value (display mode) to 'hide’ or ’show’\n   b. Set the default block to be referenced (as checkboxes widget. If Your site has more than 20 blocks, then the form element turns into an autocomplete widget).\n\n\nMAINTAINERS\n-----------\nCurrent maintainers:\n * Rocks Batoon (orrrange) - https://www.drupal.org/user/639690\n\n\nOTHER NOTES\n-----------\n\n1. Block Reference has an issue (June 17, 2014) with the autocomplete widget. See https://www.drupal.org/node/2287641.\n2. When selecting 'N/A' on the select list or checkbox, error message is \"undefined offset.\" The '_none' gets saved to the table when it shouldn't.\n   hence the Block reference reads is as a moddelta string by exploding it with ':'. (example: system:main-menu)\n\n\nTO DO\n-----------\n1. Respect Block visibility settings\n2. Remove some blocks that can be referenced. Example: blocks created by fieldblock module from fields that are of type 'blockreference'.\n   A redundant feature.\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchapter-three%2Fblockreference-toggle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchapter-three%2Fblockreference-toggle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchapter-three%2Fblockreference-toggle/lists"}