[Neos] Wrapping *each* children of ContentCollection with custom markup
Marcin Ryzycki
marcin at ryzycki.com
Fri Apr 18 17:04:52 CEST 2014
OK, solved!
Thanks Pankaj for the suggestion with TYPO3.Neos:ContentCase.
Here's working code:
blockGridContent = TYPO3.TypoScript:Collection {
collection = ${q(node).children('[instanceof
TYPO3.Neos:ContentCollection]').children()}
itemRenderer = M12.Foundation:BlockGridItem
itemName = 'gridNodeItem'
}
prototype(M12.Foundation:BlockGridItem) < prototype(M12.Foundation:Content) {
blockGridItemContent = TYPO3.TypoScript:Collection {
collection = ${q(gridNodeItem)}
itemName = 'node'
itemRenderer = TYPO3.Neos:ContentCase
}
}
And then <ts:render path="blockGridItemContent" /> inside
BlockGridItem.html renders every child correctly.
Cheers!
M.
On 2014-04-18 01:34:13 pm +0000, Marcin Ryzycki said:
> On 2014-04-17 06:09:16 am +0000, Pankaj Lele said:
>
>> try this one
>>
>> 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:ContentCase
>> }
>> }
>
More information about the Neos
mailing list