Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

environment://images in theme blueprints not working

Started by Slebeig 3 months ago · 4 replies · 743 views
3 months ago

i use a custom theme on a multisite installation with stream definitions:

YAML
  image:
    type: Stream
    prefixes:
      '': ['environment://images']

and in the themes blueprint.yaml i have this form:

YAML
form:
  validation: loose
    custom_logo:
      type: file
      label: THEME_QUARK.ADMIN.CUSTOM_LOGO
      size: large
      destination: 'environment://images/logo'
      multiple: false
      markdown: true
      description: THEME_QUARK.ADMIN.CUSTOM_LOGO_DESCRIPTION
      accept:
        - image/*

By uploading an image at the themes settings page i get: Failed to upload logo.png: This looks like a network error, the endpoint might be blocked by an internet provider or a firewall.

The folders exist and if i change it to:

YAML
destination: 'user://images/logo'

it worked, but i need the logos inside the enviroment path (user/env/<environment>/images/logo), not outside in (user/ages/logo)

It seams that the environment://.. streams are not availble or not getting evaluated to the time where the image uploads? Or am i doing something wrong?

last edited 06/25/26 by Slebeig
3 months ago

i'll create an issue and take a look at this.. i'll let you know what I find out.

3 months ago

Thanks, but i can also open those kind of issues on github, what helps more?

found another one, now in grav2 child themes seams to have no "fallback" to parent anymore.

e.g. if ../templates/block/base.html.twig not exists in child theme, it was loaded from parent before, this now gives an error:

TXT
"Template "blocks/base.html.twig" is not defined in "partials/base.html.twig" at line 5."

Suggested topics

Topic Participants Replies Views Activity
Themes & Styling · by FrViPofm, 2 weeks ago
4 391 5 days ago
Themes & Styling · by johan thomas, 5 years ago
1 751 2 weeks ago
Themes & Styling · by stuart young, 2 months ago
3 609 2 months ago
Themes & Styling · by Sebadamus, 2 months ago
5 621 2 months ago
Themes & Styling · by martynfoster735, 2 months ago
1 593 2 months ago