We want to generate a link to an external script and send a couple of values (Joomla article ID and a value from a form field) from a specific article with it. (This script generates a XML file, used to import new articles, based on the main article)
In the article template it works fine and returns the values nicely.
<a href="/script.php?joomlaarticleid={$JOOMLA_ID}&value2={$FIELD2}" target="new">Generate articles</a>
Outputs:
<a href="/script.php?joomlaarticleid=613&value2=377" target="new">Generate articles</a>
However we want the link to the script to be only visible to the people who are able to add & edit articles, so we tried to use the same code in a custom form template. But instead of the values it generates the form elements (select, input) of those fields instead. Also the {$JOOMLA_ID} didn't return anything at all.
How can we get this working, so the script can be accessed from the submision form with all the desired values? Or do we need to use another method?
Regards,
Maurits
J 3.4.4.
F2C pro 6.10.0