Search
Other Articles Anywhere questions
Forum

Link not parsed in frontend

Seppi's Avatar 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
Peter van Westen's Avatar Peter van Westen ADMIN
What type of field is the "download-datei-depr" field?

Try:
<a href="/[row:download-datei-depr:value]"
And
<a href="[row:download-datei-depr:url]"
Please post a rating at the Joomla! Extensions Directory
Seppi's Avatar Seppi
Thanks, Peter!

The type of the field was «JCE Media». I exchanged it with the native Joomla custom field «Media».

Then it was working "[row:download-datei-depr:value]"

Cheers

P.
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription