[EP-tech] Using a pin as an HTML attribute in a phrase
Gilles Fournié
gilles.fournie at cirad.fr
Wed Mar 14 09:27:00 GMT 2018
Hi,
I wanted to pass an url to a phrase through a pin...
$doc->appendChild( $repo->html_phrase('my/phrase/id", url =>
$repo->make_text($target) ) );
But I can't find a way to use it as an attribute in my phrase.
<epp:phrase id="my/phrase/id">
<a href="<pin name='url'/>">
Go to <pin name="url"/>
</a>
</epp:phrase>
does not works (as expected).
But the {} form, used to insert field values as attributes doesn't work
either (<a href="{url}">).
Do you know is there is a way to insert a pin as an attribute ?
Maybe with a special syntax like href="{pin:url}" for example ?
Or with the help of some code in Perl ?
Thanks
GF
More information about the Eprints-tech
mailing list