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

environment://images in theme blueprints not working

Started by Slebeig 2 months ago · 4 replies · 437 views
2 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
2 months ago

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

2 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 stuart young, 7 days ago
3 164 4 days ago
Themes & Styling · by Sebadamus, 2 weeks ago
5 249 1 week ago
Themes & Styling · by martynfoster735, 2 weeks ago
1 267 2 weeks ago
Themes & Styling · by Justin Young, 4 weeks ago
1 312 4 weeks ago
Themes & Styling · by Pedro M, 4 months ago
4 840 3 months ago