internezzo/childreload

Neos CMS package that helps to reload the page on change of any of the child nodes of the specific nodetype

Installs: 49 041

Dependents: 1

Suggesters: 0

Security: 0

Stars: 11

Watchers: 4

Forks: 2

Language:JavaScript

Type:neos-package

2.0.0 2023-11-21 09:50 UTC

This package is auto-updated.

Last update: 2024-11-13 09:59:29 UTC


README

Sometimes the rendering of your base node depends on the number of child nodes underneath it. So when adding or removing children, you would want your whole page to reload. This package helps you to accomplish just that.

Usage

  1. composer require internezzo/childreload
  2. Modify your base nodetype like this:
'YourVendor:YourBaseNodeType':
  options:
    reloadIfChildChanged: true

Voila! When any of the child nodes were added or removed, the page would reload.

The package only works with the modern Neos UI starting with Neos 3.3

Development

Go to Resources/Private/JavaScript/ChildReload and run yarn watch or yarn build to recompile the JS assets.