I have a custom modular template/blueprint for reviews that is loosely based on the features template from Anitmatter. I’m trying to add a pagemediaselect option to the feature loop. In the blueprint, I have
.avatar:
type: pagemediaselect
label: Avatar
Which produces the drop-down to select the image option in the admin. But in the twig template, I’m not able to get the image to show up. I think I’ve read everything in the documentation and in the forum, this post is the closest that I’ve gotten. https://getgrav.org/forum#!/theme-development:access-to-pagemediaimages
Using
<img src="{{ page.url }},{{ review.avatar }}">
(replaced “features” with “reviews” in the blueprint)
I’m able to get output this:
img src="http://yisraels-macbook-pro.local:5757/crawfordmendez/modular/_04reviewsdemo-avatar-bowie.jpg">
For reference, an image url that works correctly through the callout module looks like this:
http://yisraels-macbook-pro.local :5757/crawfordmendez/images/1/8/1/2/a/1812abfd6068f0147269a3b8472b271b6c3a53da-demo-profile-image.jpeg
Thanks in advance!!