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

Images & Blueprints

Started by Muut Archive 11 years ago · 1 replies · 417 views
11 years ago

Hello.

Making my first theme for myself. I created a custom blueprint.yaml for my module. In that module, I wanted to be able to upload images from the image uploader you have in the admin which is great, but then I don't know how I can add them to some of my personalized blueprints inputs.

I found this (probably a good idea to add in your docs or in more places), in my TWIG template


page.media[image].url

TXT

And then I just paste the image name in the `image` blueprint

But is there a better way?
11 years ago

Currently this is the best way until we have support for a more flexible image form field.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 2590 9 years ago
Archive · by Muut Archive, 9 years ago
2 1705 9 years ago
Archive · by Muut Archive, 9 years ago
2 4997 9 years ago
Archive · by Muut Archive, 9 years ago
1 3827 9 years ago
Archive · by Muut Archive, 9 years ago
3 1810 9 years ago