vivomedia / neos-partial-render
Installs: 632
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:neos-package
Requires
- neos/neos: ^7.0.0 || ^8.0.0
README
Inspired by Psmb.Ajaxify
Install
composer require vivomedia/neos-partial-render
Basic usage
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} />
`
}