Hi.
I'm playing with Flex Objects and I've just created one for authors or contributors in a web. I export each author to .json file in user/data/flex-objects/. Each author has an avatar image too (it is storaged in user/data/flex-objects/avatars).
The avatar image is uploaded from Flex form with a File blueprint. I get all values from Json correctly, except avatar image. This is my code:
{% set flex = grav.get('flex_objects') %}
{% set authors = flex.directory('authors') %}
{% set collection = authors.getCollection() %}
<ul>
{% for author in collection %}
<li>
{% if author.avatar %}
<img src="{{ author.avatar.path|e }}" alt="{{ author.authorname }}" />
{% endif %}
Name: {{ author.authorname }} <br>
Biography: {{ author.biography }} <br>
Tags: {% for tag in author.tags %} {{ tag|raw }}{% if not loop.last %}, {% endif %}{% endfor %}
</li>
{% endfor %}
</ul>
How can I get the avatar image path correctly.
Thanks in advance.