Skip to content

VIVOMEDIA/neos-partial-render

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VIVOMEDIA.PartialRender

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