vivomedia/neos-partial-render

1.1.0 2023-05-29 12:38 UTC

This package is auto-updated.

Last update: 2024-11-27 15:17:46 UTC


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} />
  `
}