Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blueprint mediapicker not displaying images in pages - 404 media.json #1457

Closed
sebastianbaumann opened this issue Jun 1, 2018 · 4 comments
Closed

Comments

@sebastianbaumann
Copy link

sebastianbaumann commented Jun 1, 2018

Hey guys,

just tried the new mediapicker type in my page blueprint.
If I open the modal the first time, it displays all images, but if I use the page navigation on the left, no images are shown at all, even if you reset the path via the X close button.

Snippet from my blueprint yaml file.
I tried changing the folder location to @self, does not work either.

By the way... I couldn't find any information for what folder is used for.

  fields:
            picker:
              label: Bild auswählen
              type: mediapicker
              folder: '@page@:/media'
              preview_images: true

Following error is displayed in the chrome dev tools console:
Failed to load resource: the server responded with a status of 404 (Not Found) /admin/media.json/tmpl:media-list-content/index:0/page:%5Chome%5C_categories

image

We tested this on two complete different grav installations, same error each time.

@rhukster
Copy link
Member

rhukster commented Jun 8, 2018

My test example looks like this:

           picker:
                  type: mediapicker
                  folder: 'self@'
                  label: Select a file
                  preview_images: true
                  accept:
                    - .jpg

@sebastianbaumann
Copy link
Author

sebastianbaumann commented Jun 11, 2018

Ok, just tried to reproduce on my mac at home, works flawless. Could this be some local windows development issue, due to the different file systems - regarding that 404 error for the media.json file?

@mahagr
Copy link
Member

mahagr commented Jun 13, 2018

I agree that this may be because of differences between Windows and Mac/Linux..?

@mahagr
Copy link
Member

mahagr commented Jun 14, 2018

I think this one is fixed in #1465 ? This is because of folder: '@page@:/media' was broken.

@mahagr mahagr closed this as completed Feb 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants