Hi,

I have been looking up on the web and can't seem to find a solution for this.

I have a collection of "regattas" (sailboat racing), in which I can manually enter the results. The results are class based.

My goal is to be able to show the results of a specific athlete on their "profile" page.

Here is my .yaml structure:

results:
  -
    type: class
    class: Radial
    athletes_count: 67
    athletes:
      -
        type: athletes
        athlete: 5c692a15-ec78-4906-a731-5b51be820656
        position: 14
      -
        type: athletes
        athlete: ead40d18-0e7f-4dae-8ae1-d054f8c3ee8c
        position: 15
      -
        type: athletes
        athlete: 75cf8e60-efce-41cc-bc4d-112739b034fc
        position: 19
  -
    type: class
    class: '4.7'
    athletes_count: 19
    athletes:
      -
        type: athletes
        athlete: 65779d24-f17e-445b-a9af-3170596a19b8
        position: 11

Now I want to get the {{ position }} of a specific {{ athlete }}.

Here is what I have:

{{ collection:regattas registered_athletes:contains="{ id }" sort="event_start_date:desc" }}
  {{ results }}
      {{ athletes athlete=="{id}" }}

          {{ position }}

        {{ /athletes }}
    {{ /results }}
{{ /collection:regattas }}

I am pretty new to statamic and this seemed logical for adding results from the cp, but i am struggling to get the specific values from a replicator inside a replicator.