[Cartoweb-dev] layers.tpl and metadata
Yves Jacolin
yjacolin at free.fr
Wed Feb 14 09:16:57 EST 2007
Le Mercredi 14 Février 2007 15:11, vous avez écrit :
> Yves Jacolin wrote:
> > Hi,
> >
> > I try to use the metadata in the layers.tpl templates. My metadata are a
> > link, I want to display a pdf icon to download a pdf document from web.
> > The link is not wrote completly :
> > the true link in the mapfile :
> > http://www.paris.fr/portail/viewmultimediadocument?multimediadocument-id=
> >21739 the link in the gui :
> > http://www.paris.fr/portail/viewmultimediadocument?multimediadocument-id
> >
> > Thanks !
> >
> > Y.
>
> Have you tried to use quotes " to surround your link value ?
>
> Pierre
Here the code in my mapfile :
METADATA
"exported_values" "file_pdf"
"file_pdf"
"http://www.paris.fr/portail/viewmultimediadocument?multimediadocument-id=21739"
END
And in the layers.tpl :
{if $element.layerMeta.file_pdf}
<a href="{$element.layerMeta.file_pdf}" ><img
src="@CARTOCLIENT_BASE_URL at lpdi/icons/pdf.png"/></a>
{/if}
Where can I add quote ?
Y.
--
Yves Jacolin
---
http://yjacolin.gloobe.org
More information about the Cartoweb-dev
mailing list