The client wants to hide some published content in certain views.
Unpublishing content is not an option. it has to remain accessible.
I added a Boolean value
exclude_from_view Field on multiple content types.
I intended to add a Boolean filter to exclude content from the required ads if the value of this field was
TRUEbut I was surprised that Views did not give any results at all. Setting the Boolean filter No
NOT FALSE had the same result.
This happens because the field has no default value added to the existing content, so the field is returned
NULLThat is not one
FALSE, (In PHP
NULL is a "wrong" value, but apparently not for views.)
A small investigation shows that many other people have complained about this problem.
Some of them believe that boolean fields that are not set for entities should be considered
Others want that
NULL Fields could be treated as
Still others believe that the user interface of Views should provide filtering options for Treat
TRUE, "(This is a cool idea, but it requires a patch core that I'm not necessarily against, if that's the best way.)
What should I do?