Neos CMS Agentur erklärt: Das unsichtbare Boolean-Problem – warum Filter in Neos keine Ergebnisse liefern und wie eine Node-Migration hilft.

A technical field report from practical web development – for everyone who programs and maintains websites with Neos CMS.

 

 

A Seemingly Small Problem with a Big Impact

 

Anyone who regularly develops websites with Neos CMS knows how flexible the system is. Content, structures, and data models can be controlled with extreme precision – but this freedom also comes with its pitfalls. One of them is the so-called “invisible Boolean problem”: A new field is defined in the NodeType, but filters and output behave inconsistently.

In day-to-day programming and web development, this problem usually only becomes apparent when data needs to be filtered in a list view or via an EEL query – and suddenly no results are returned, even though content is clearly present.

 

 

The Typical Scenario in Neos Development

 

A developer extends the NodeType of an event document with a new checkbox that controls whether an event should be displayed on a specific website page (for example, a “dance platform”):

showOnTanz:
  type: boolean
  defaultValue: false
  ui:
    label: 'Im Tanzplattform anzeigen'

Afterwards, filtering is performed in an EEL query or PHP helper:

->filter('[showOnTanz=true]')

Or in Fusion:

q(site).find('[instanceof Vendor.Site:Document.Event]').filter('[showOnTanz=true]').get()

The result: No events are displayed – even though the checkbox has been activated. New content behaves correctly, while existing content does not. A mystery that initially leads even experienced developers down the wrong path.

 

 

The Technical Cause: Default Values Are Not Retroactive

 

Neos CMS only stores properties in the database once they are actually set. The defaultValue defined in NodeTypes.yaml only exists at the logical level – not physically in the database. This means that for nodes that already exist, this field is never created if it is introduced later.

For new nodes, the default is applied correctly. For existing content, however, the showOnTanz field is simply not present in the neos_contentrepository_domain_model_nodedata table. Filters that reference this property therefore return no results.

The result: Debug output may show bool(true), but the internal filtering logic finds no match – because no stored value exists.

 

 

Typical Failed Attempts During Troubleshooting

 

Many developers fall into the same traps before finding the real cause:

 

- Using getProperty('showOnTanz') in the helper or template – seemingly correct, but there is no persistent value

- Adjusting the defaultValue in YAML – no effect on existing nodes

- Direct queries in Fusion – no results

- Rebuilding caches or reindexing – also without any effect

 

These symptoms can easily lead you in the wrong direction, because everything looks as though the property is being set correctly – when in fact it has never been stored in the ContentRepository.

 

 

The Solution: A Node Migration for Existing Content

 

The sustainable solution is to run a migration that ensures all existing nodes receive this field. This physically creates the new Boolean value in the database for older content as well.

up:
  comments: 'Ensure all Event nodes have showOnTanz set'
  filters:
    - type: 'NodeType'
      nodeType: 'Vendor.Site:Document.Event'
  transformations:
    - type: 'AddProperty'
      property: 'showOnTanz'
      value: false

This file is placed in Packages/Sites/Vendor.Site/Migrations/ContentRepository/ and executed via the CLI:

./flow node:migrate --version 20251029

After the migration, the following commands should be executed:

./flow node:repair
./flow cache:flush

From this point onwards, the showOnTanz property is also correctly available for older content – and filter expressions work reliably again.

 

 

Extending the Solution for Complex Website Projects

 

In larger web development projects, it can make sense to automatically create a migration whenever new properties are added. This is particularly important when content grows over many years or when several developers are working on a website. This ensures that all content structures remain synchronized.

The same applies to future extensions: YAML definitions alone only change the configuration for new nodes. Anyone who wants to modify existing data always needs migration logic – regardless of whether the property is a Boolean, String, or relation.

 

 

Conclusion: Why Neos CMS Requires Technical Precision

 

The Boolean problem demonstrates just how deeply Neos CMS works internally with its ContentRepository. For developers, agencies, and companies, this means that anyone programming websites with Neos should understand how data is stored, interpreted, and filtered.

This case is a prime example of precise debugging and clean data modeling in the programming of modern websites. With the right migration, the problem can be permanently resolved – in a stable, version-safe, and update-friendly way.

 

Tip from a Neos agency: If you are developing your website further, introducing new properties, or managing complex data structures in Neos CMS, plan for migrations from the outset. This saves time and effort and guarantees consistent content across all language and site variants.

 

Our Munich web agency, Econcess, places great emphasis on a vibrant design to appeal to as many customers as possible. If you are interested in a website for your company, please feel free to contact us. We specialize in tailor-made solutions and offer professional support in implementing your digital projects.

 

 

Contact us!