I want to iterate through array file_url and file_name , this way works:
<div class="u-cf">
<a href="{Api.file_url[0]}">{Api.file_name[0]}</a> <br>
<a href="{Api.file_url[1]}">{Api.file_name[1]}</a>
</div>
But i need this one to do it with loop
{#Api.file_name}
{#.}
<a href="{$file_url}">{$file_name}</a>{.} <br>
{/.}
{/Api.file_name}
I need to do it like this, but it shows only the file_name because it referees to the Api.file_name, if i do Api.file_url it shows the url only. I want to show both of them
Hope your data looks like below:
you need helper to load two different data on same element like below:
working fiddle