I would like to get a specific cb field in a snippet. The cbGetFieldContent is not an option here, because I do not know how many times the field exists on the page. To get the cb content, I am using
$cbarray = $resource->getProperty('linear', 'contentblocks');
As snippet input property I use unique idx and thought I could use it as an array index for the $cbarray. However, it seems, that the unique idx increments with each new layout. Is there a way to get the correct array position of the field in a placeholder, so I could pass it to my snippet?