Displaying filename in editable field

I have a file blueprint and I would like to display the filename in the fields to let the user edit it (they can also edit it in the top bar, but I would like to replicate this editable field)

Is it possible?
I’ve tried this so far:

sections:
  infos:
    type: fields
    fields:
      filename:
        type: text
      date:
        type: date

That will only store the filename in the content file (or file metadata, not sure in what context you are in the above snippet), not change the filename of the file.

You would then need a hook that changes the filename upon changes to this field, but then the user would’d be redirected correctly, so altogether, this doesn’t sound like such a good idea.

1 Like

haha, alright, yeah, seems like over-egeneering for not so much. Will stick with the default option :slight_smile:
Thanks!