Seppi
Hi Peter,
I would like to show some custom fields inside of a subform in Joomla! 5 (in YooTheme Pro), using your great {foreach} functionality.
However, using this code,
{article}
{foreach data="downloads"}
<a href='[row:download-datei-depr:value]' class="el-link uk-button uk-button-primary uk-button-small">
[row:download-titel]
</a>
{/foreach}
{/article}
I get the working buttons and also the links to the download files like expected, but only inside the preview of YooTheme Pro builder (in the backend).
If I load the page in the frontend the links seem not to be parsed, as I get the following broken html output:
<a href='images/downloads/Dummie-Jahresprogramm.pdf' class="el-link uk-button uk-button-primary uk-button-small">
Jahresprogramm 2025
</a>
<a href='images/downloads/Dummie-Jahresprogramm.pdf' class="el-link uk-button uk-button-primary uk-button-small">
Test-Download
</a>
Assuming that I'm producing a syntax error, I already tried different variants:
"[row:download-datei-depr]"
"[row:download-datei-depr:value]"
"[row:download-datei-depr:text]"
'[row:download-datei-depr]'
'[row:download-datei-depr:value]'
'[row:download-datei-depr:text]'
but with the same / a similar, not working result (the html code breaks everytime).
What's my mistake?
Thank you so much!
Peter