Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Forms & Blueprints

Admin Image upload blueprint

Started by Likos 6 years ago · 0 replies · 622 views
6 years ago

Hi

I'm actually build a site with some modules in modules (Home > Module > Submodule).
For one of these submodules I created an blueprint with Image upload:

YAML
 title: Boxes
@extends: default

form:
  fields:
    tabs:
      fields:
        box:
          type: tab
          title: Box
          fields:
            header.box:
              name: box
              type: list
              label: Box
              fields:
                .title:
                  type: text
                  label: Title
                .text:
                  type: editor
                  label: Content
                .picture:
                  type: file
                  label: Picture
                  destination: '@self'
                  accept:
                    - image/*

This blueprintlayout normally works fine, but in the submodules the image upload doesn't work properly. It upload the image in the submodule, but it does not generate the correct frontmatter in the submodule, just an empty
picture: { }
entry.

I use Grav v1.7.0-rc.10

Maybe someone has an idea 🙂

Thanks for help.

Suggested topics

Topic Participants Replies Views Activity
Forms & Blueprints · by Ton Haarmans, 5 years ago
13 1140 4 months ago
Forms & Blueprints · by Hugo Oliveira, 5 months ago
0 63 5 months ago
Forms & Blueprints · by Flachy Joe, 6 months ago
9 138 6 months ago
Forms & Blueprints · by Augustus, 7 months ago
7 114 7 months ago
Forms & Blueprints · by Julien, 7 months ago
10 132 7 months ago