Created
August 27, 2019 04:55
-
-
Save grebaldi/a6008e8cd7154af729795cb7bd594390 to your computer and use it in GitHub Desktop.
Find pages with particular nodetypes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[email protected] = 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