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 Filepicker Field not working with Grav v1.7.5/Admin v1.10.3/Flex Objects v1.0.2 with theme@ in folder #109

Closed
cyberlussi opened this issue Feb 14, 2021 · 2 comments
Assignees
Labels
bug Something isn't working fixed Issue has already been fixed

Comments

@cyberlussi
Copy link

I had a working (Grav 1.6) blueprint using the filepicker element to select some png icons in the backend for a page from the theme folder. When deactivating flex objects plugin for the pages, then the blueprint worked as expected, but not with it activated. Maybe related to #71.

header.icon:
              type: filepicker
              folder: 'theme@:/assets/my-icons'
              label: Bild wählen
              preview_images: true

Now I updated to latest Grav versions (incl. cache clearing) and the filepicker does not work any more: only the previously set png is in the file picker (the value in the page yaml), no other image is shown (should be 5). The html of the file picker image renders like this:

<img class="filepicker-field-image" src="/backend/../theme@:/assets/my-icons/icon1.png">

So there seems something not working with the file field destination resolution (for output and for globbing the actual present files on the server).

Note: I changed the default Administrator path in the Admin-Config to "/backend", but that does not seem to be root cause as I reverted it for test.

@mahagr
Copy link
Contributor

mahagr commented Feb 15, 2021

As a workaround using theme:// should work.

@mahagr
Copy link
Contributor

mahagr commented Feb 16, 2021

Fixed in 1c4156a

@mahagr mahagr added bug Something isn't working fixed Issue has already been fixed labels Feb 16, 2021
@mahagr mahagr self-assigned this Feb 16, 2021
@mahagr mahagr closed this as completed Feb 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed Issue has already been fixed
Projects
None yet
Development

No branches or pull requests

2 participants