mhsdesign / PackageFactory.ComponentFactory

GNU General Public License v3.0
0 stars 0 forks source link

Loop with context information #3

Open mhsdesign opened 1 year ago

mhsdesign commented 1 year ago

in fusion we can rely on iteration or item what here?

mhsdesign commented 1 year ago

Should the rendering context be extended with and array of arbitrary values? But we would loose all type safety and couple s component to its parent

mhsdesign commented 1 year ago
    $precedingNode = $renderingStuff->subgraph->findPrecedingSiblingNodes($renderingStuff->node->nodeAggregateId, \Neos\ContentRepository\Core\Projection\ContentGraph\Filter\FindPrecedingSiblingNodesFilter::create());

    $itemCount = $precedingNode->count();