Image template is not assigned when saving

title: Home Page
preset: page
fields:
  intro:
    label: Intro
    type: textarea
    size: small
  publications:
    type: files
    headline: Gallery
    template: publication

This is my page yml and I have a problem with the files template. This never gets written into the image markdown files and I have no idea why. No matter if i do template: cover or whatever.

Would be cool to have some help on this topic, most likely I’m doing something completely wrong :smiley:

Cheers
Tobias

A files field doesn’t have a template property (nor does it have a headline, but a label). You have to define the template to assign inside the uploads property, see

1 Like

Thank you so much. This works, actually no Idea why I did it in the way I wrote. Most likely some copy paste mistake/misunderstanding from somewhere :frowning:

I just got back to this, I wrote a shop plugin and within this the blueprint is fine, as we discussed previous but the “Template: cover” is not assigned in the asset text file :frowning:

this is the field blueprint

cover:
    type: files
    layout: cards
    headline: Cover
    min: 1
    max: 1
    uploades:
      template: cover

Should be uploads!

1 Like

hahah OMG. I should clean my glasses … Thanks a lot