tranduyhung / grav-theme-big-picture

Big Picture theme is a port of Big Picture by HTML5 UP for Grav CMS
MIT License
15 stars 12 forks source link

Image list is empty in gallery #12

Open teewhey opened 6 years ago

teewhey commented 6 years ago

I have uploaded a few pictures in the gallery using the admin plugin. Image was successfully uploaded and saved.

However when I go to the Images tab to create an item, the list is somehow empty.

image image

Any idea?

tranduyhung commented 6 years ago

If you refresh or save the page, are the images shown after that?

teewhey commented 6 years ago

Nope. Nothing on the drop down list. I've used different browser & also private browsing mode.

tranduyhung commented 6 years ago

I'm not sure if it is a problem from filepicker field or from us. Grav's filepicker field doesn't consider ".JPG" extension as ".jpg". You have 2 solutions:

            header.images:
              name: images
              type: list
              style: vertical
              label: Images
              fields:
                .title:
                  type: text
                  label: Title
                  help: Image's title.
                .full:
                  type: filepicker
                  folder: '@self'
                  preview_images: true
                  accept:
                    - .png
                    - .jpg
                    - .JPG
                  label: Full Image
                  help: Full image's filename.

I will need to contact Grav developer for their comments.

teewhey commented 6 years ago

Ah... I renamed the file extension to small caps and re-uploaded it and it appears.