Inspired by Psmb.Ajaxify
composer require vivomedia/neos-partial-render
prototype(Vendor.Site:SomeContentToLoadPartial) < prototype(Neos.Neos:ContentComponent) {
renderPartialKey = VIVOMEDIA.PartialRender:RenderPartialKey
@context.renderPartialKey = ${this.renderPartialKey}
renderPartialUrl = Neos.Neos:NodeUri {
node = ${documentNode}
additionalParams.renderPartialKey = ${renderPartialKey}
}
renderer = afx`
<div data-url-to-load={props.renderPartialUrl} />
`
}