Skip to content

Instantly share code, notes, and snippets.

@ryzy
Created April 16, 2014 19:45
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryzy/10925362 to your computer and use it in GitHub Desktop.
Save ryzy/10925362 to your computer and use it in GitHub Desktop.
How to wrap *each* children of TYPO3.Neos:ContentCollection into custom markup?
prototype(M12.Foundation:Content) < prototype(TYPO3.Neos:Content)
prototype(M12.Foundation:BlockGrid) < prototype(M12.Foundation:Content) {
blockGridContent = TYPO3.TypoScript:Collection {
collection = ${q(node).children('[instanceof TYPO3.Neos:ContentCollection]').children()}
itemName = 'gridItem'
itemRenderer = TYPO3.Neos:Content {
node = ${gridItem}
templatePath = 'resource://M12.Foundation/Private/Templates/NodeTypes/BlockGridItem.html'
}
}
}
{namespace ts=TYPO3\TypoScript\ViewHelpers}
<li>
<ts:render path="node" />
</li>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment