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

environment://images in theme blueprints not working

Started by Slebeig 5 days ago · 4 replies · 97 views
5 days 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
5 days ago

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

5 days 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 Pedro M, 2 months ago
4 322 2 months ago
Themes & Styling · by Ian, 2 months ago
3 161 2 months ago
Themes & Styling · by Norbert, 2 years ago
11 528 3 months ago
Themes & Styling · by Lukáš Findeis, 3 months ago
0 111 3 months ago
Themes & Styling · by Sebadamus, 4 months ago
5 207 4 months ago