This module is a simple plugin to enable boolean (checkbox) fields on a node to be used as a condition to determine whether or not a block (or other entity using conditions for visibility) should be visible.
Project link
https://www.drupal.org/project/node_boolean
Git instructions
git clone --branch 8.x-1.x https://git.drupal.org/project/node_boolean.git
Similar projects
Entity Field Condition
The entity field condition module is really good as it allows the use of any field type, but with the limitation of only allowing a single field to be evaluated. This contrasts to the Node Boolean module in its only currently being applicable to boolean fields but being able to evaluate against multiple boolean fields and comparing them in an either all or any combination.
Demo
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | Screen Shot 2018-09-05 at 22.48.10.png | 96.81 KB | olegel |
Comments
Comment #2
andy_w commentedAutomated review run, results here: https://pareview.sh/pareview/https-git.drupal.org-project-node_boolean
Comment #3
kybermanReview of the 8.x-1.x branch (commit 027862f):
Comment #4
avpadernoComment #5
andy_w commentedCoding standards changes made in line with kyberman's review. Thanks for reviewing :-) and for the feedback
Comment #6
olegel commentedAutomated review:
No problems found with coding standards.
Manual review:
Module breaks with fatal error after enabling.
Screenshot attached. The reason is missing use statement of ContainerInterface.
'use Symfony\Component\DependencyInjection\ContainerInterface;' should be added to NodeBoolean.php file.
Also, could you check README.md - it almost fits Drupal standards, just few additional notes (Like headings should be underlined with ===/--- to the length of the heading)
Please check https://www.drupal.org/docs/develop/documenting-your-project/readme-temp...
Comment #7
andy_w commentedOh dear the result of sliding in that last change. I've now updated in the 8.x-1.x branch and manually tested, all working as expected.
Also updated the README.md to include the conventions from the README.txt (including double spacing ahead of headings and the ---/=== format).
Comment #8
olegel commentedIssues are fixed and module seems to work.
Comment #9
avpadernoThank you for your contribution!
I am going to update your account so you can opt into security advisory coverage now.
These are some recommended readings to help with excellent maintainership:
You can find more contributors chatting on the IRC #drupal-contribute channel. So, come hang out and stay involved.
Thank you, also, for your patience with the review process.
Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.
I thank all the dedicated reviewers as well.