Disable editing of a shared footer on subpages

I registered a shared footer just like it is described in the docs.

From a backend user experience perspective it’s not clear why the footer is editable on each page, but the footer contentcollection is just on the root page.

Is there any way to make the footer “not editable” on any other page than the root page?

Inside the footer part in Fusion you can add the following condition to disable the editable wrapping:

@process.contentElementWrapping.@if.onHomepage = ${site == documentNode}

Didn’t test it, but it should work like that.

Thank you.

It basically works. But this just disables editing the ContentCollection. Every element that is inside (for example a footer menu) is still editable.

a clever hack would be to use hierarchical prototype overrides (untested)

footer {
  prototype(Neos.Neos:ContentElementWrapping) {
    @if.onHomepage = ${site == documentNode}
  }
}

https://docs.neos.io/guide/manual/rendering/fusion#hierarchical-fusion-prototypes