Skip to content

Instantly share code, notes, and snippets.

@grebaldi
Created August 27, 2019 04:55
Show Gist options
  • Save grebaldi/a6008e8cd7154af729795cb7bd594390 to your computer and use it in GitHub Desktop.
Save grebaldi/a6008e8cd7154af729795cb7bd594390 to your computer and use it in GitHub Desktop.
Find pages with particular nodetypes
root.@process.debug = Neos.Fusion:Component {
nodeType = 'Vendor.Site:ContentType'
items = ${q(site).find('[instanceof ' + this.nodeType + ']').get()}
renderer = Neos.Fusion:Collection {
collection = ${props.items}
itemRenderer = Neos.Fusion:Component {
document = ${q(item).closest('[instanceof Neos.Neos:Document]').get(0)}
title = ${q(this.document).property('title')}
renderer = afx`
<a href={'node://' + props.document.identifier}>{props.title}</a>
<br/>
`
}
}
@process.convertUris = Neos.Neos:ConvertUris
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment