Search
Other Articles Anywhere questions
Forum

CF values in input field

Sigrid Gramlinger's Avatar Sigrid Gramlinger
Hi,
I want to add links to a route planer to my articles. the address is in custom fields.
If I output the address fields (Zieladresse) it works correctly, but I would need it in an (hidden) input field. The values are not rendered in the input value.
Do I miss something? Or is it not possible?
<form action="https://maps.google.com/maps" method="get" target="_blank">
	<p>
		<label>Startadresse (mit Ort)</label><br />
		<input name="saddr" type="text" value="" class="inputbox" /> <br />
		<label>Zieladresse:</label> {article}[adresse]<br />[plz] [ort]{/article}
	</p>
	<p>
		<input name="daddr" type="text" value="{article}[adresse],[plz] [ort]{/article}" />
		<button type="submit" class="btn">Karte aufrufen</button>
	</p>
</form>

https://www.dropbox.com/s/619txbc2n0umlwe/articles-anywhere.jpg?dl=0

Thanks
Sigrid
Peter van Westen's Avatar Peter van Westen ADMIN
The plugin tags are not handled inside input fields and text areas, to prevent things from getting messed up in - for instance - article edit forms.

What you could do is use Sourcerer to output the input fields, as Articles Anywhere will not see them as input fields at that stage:
{article}{source}<input name="daddr" type="text" value="[adresse],[plz] [ort]" />{/source}{/article}
So just place that in the WYSIWYG view of the editor (not in the HTML view).

And make sure the Sourcerer system plugin is ordered after Articles Anywhere.
Please post a rating at the Joomla! Extensions Directory
Sigrid Gramlinger's Avatar Sigrid Gramlinger
OK. I will check.
Thanks!!!
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription