Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Images & Blueprints

Started by Muut Archive 11 years ago · 1 replies · 327 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 1346 9 years ago
Archive · by Muut Archive, 9 years ago
2 933 9 years ago
Archive · by Muut Archive, 9 years ago
2 4060 9 years ago
Archive · by Muut Archive, 9 years ago
1 2945 9 years ago
Archive · by Muut Archive, 9 years ago
3 1117 9 years ago