Hi guys, posted this on discord but got no answers. See the problem below.
I’ve noticed that if I setup sortable sections on a page and move a section/module around the images break. e.g.
/grav-cms/user/pages/03.Company/06.about-us/04._our-board/image.png
This is what the site is looking for but I’ve moved the module to position 03. so the actual files are now below.
/grav-cms/user/pages/03.Company/06.about-us/03._our-board/image.png
Is this a bug ? Surely the folder locations should update ?
This is the code I’m using to display the images in my template.
{% for member in page.header.yoyo.board.members %}
<li>
<div class="member">
{% if member.file %}
{% for key,val in member.file %}
{% set filepath = '/' ~ val.path %}
{% if member.link.url %}<a href="{{ member.link.url }}" target="_blank">{% endif %}
<img src="{{home_url}}{{filepath}}" class="member-img" />
{% if member.file %}</a>{% endif %}
{% endfor %}
{% endif %}
</div><!--/ .mention -->
</li>
{% endfor %}
Many thanks
Zee