fabianmichael / kirby-markdown-field

Super-sophisticated markdown editor for Kirby 3, community built.
Other
160 stars 14 forks source link

Feature Request: Option to set file/image template #133

Open owzim opened 2 years ago

owzim commented 2 years ago

Right now when uploading a file or image, it will get uploaded without accompanying template file.

It would be very useful to be able to set the template in field options.

fabianmichael commented 2 years ago

This should really work like in the normal textarea field. I’ll have a look soon.

tobimori commented 8 months ago

This works for me in the latest version:

files: page('page://images').images
uploads:
  template: image
  parent: page('page://images')
fabianmichael commented 8 months ago

@tobimori Does it mean, that this is basically resolved? Maybe this works, because the markdown field inherits from the textarea field after all …

tobimori commented 8 months ago

nvm, this results in the following issue: https://github.com/fabianmichael/kirby-markdown-field/issues/181