Synchronized Image galleries

Hey,

i want to do a .yml file that has different image fields where images can be uploaded. like this:

title: Index

columns:
  left:
    width: 2/3
    sections:
      logo:
        type: files
        layout: cards
        image:
          cover: true
          ratio: 3/4
      cover:
        type: files
        layout: cards
        image:
          cover: true
          ratio: 3/4

the problem is that when i upload an image it gets also loaded into the other image field. It gets synchronized. What am i doing wrong?

Thank you alredy,
best,
julius

You would have to assign different templates to each files section:

olumns:
  left:
    width: 2/3
    sections:
      logo:
        type: files
        layout: cards
        template: logo
        image:
          cover: true
          ratio: 3/4
      cover:
        type: files
        template: cover
        layout: cards
        image:
          cover: true
          ratio: 3/4

This template is then assigned on upload. On the frontend, you can then filter your files by this template.

On a side note: You are using files sections, not files fields

Thanks, that solved everything! <3