Image selection is not saved to page.txt

Hi there,

I m a not-total-beginner, but long-way-to-go slow-learner and apparently do have problems with fields and files in the panes section.

I do have a field where I wanted to have the option to select several images from the page folder for a project-gallery. It is possible to select the images and press โ€œsaveโ€. However the information on the project.txt is not altered and there is no new field and no selection written.

I m puzzled and I canโ€™t find the answer to to my problem. :confused:

I appreciate any hint.

This ist the part in my blueprint I m working on

sections:
  project-images:
    type: fields
    fields:
      project-gallery:
        type: files
        label: Frontend Gallery  

this is my complete blueprint:

title: Project

columns:
  - width: 1/2
sections:
  cover:
    type: files
    label: Cover Image
    layout: cards
    width: 1/2 
    max: 1
    template: cover
  info:
    type: fields
    fields:
      category:
        type: tags
        options:
          - Illustration
          - Comic
          - Layout
          - Webdesign
          - Animation
        width: 1/2
      client:
        type: text
      datum:
        type: text
      link:
        type: url
      text:
        label: Project description
        type: textarea
  - width: 1/2
sections:
  project-images:
    type: fields
    fields:
      project-gallery:
        type: files
        label: Frontend Gallery    
  gallery:
    type: files
    layout: cards
    template: gallery-image
    image: 
      ratio: 1/1

I suspect the problem may be with how your blueprint is indented.

You cannot use hyphens in field names (so project-gallery is not valid), use either camelCase or underscores. Not 100% sure about the section name, but Iโ€™d stay away from hyphens in blueprint keys in general.

1 Like

thank you so much!

yes - i see now that I altered the indentation accidentally when I copied the blue print here.
thanks for engaging your brain power! :slight_smile: