Link to custom field breaks output

Search
Other Bug Reports questions
Forum

Link to custom field breaks output

Seppi's Avatar Seppi
Hi

I would like to build a link to a value (phone number) coming from a custom field [phone]. This is, what I initially tried:
{article id="1"}<a href="tel:41[phone]">0[phone]</a>{/article}
Expecting the visible output 024 261 11 11 (linked to 4124261111) I unfortunately only manage to get something «rotten» like

24 261 11 11">024 261 11 11.

Having a look at the HTML code, I can see there's obviously something going on with the «span» tag (I don't even use).
<a href="mydomain.ch<span%20class=" field-value="">24 261 11 11"&gt;0<span class="field-value ">24 261 11 11</span></a>
To ensure my «tel:-link creations» don't infere with the regular articles anywhere code, I tried with the following
{article id="1"}<a href="[phone]">0[phone]</a>{/article}
and with output="value"
{article id="1"}<a href="[phone output="value"]">0[phone]</a>{/article}
Since I use two " inside the a-attribute, «output value» is not working neither.

What's my mistake?

Thank you
Peter van Westen's Avatar Peter van Westen ADMIN
Are you using Joomla 3 or 4?

So what does this result in (html output)?
{article id="1"}<a href="[phone:value]">0[phone]</a>{/article}
Please post a rating at the Joomla! Extensions Directory
You can only post on this forum if you log in