[Cartoweb-dev] layers.tpl and metadata

Oliver Christen oliver.christen at camptocamp.com
Thu Feb 15 02:16:50 EST 2007


Hi Yves
It is possible to set the metadate in layers.ini instead of into the 
mapfile.
exemple:
layers.sn25.className = Layer
layers.sn25.msLayer = sn25
layers.sn25.metadata.fileIdentifier = SN25 <- this is the metadata

I dont know if string containing "=" will pass, as I have never tried 
myself.
Let me know if it works or not.

Btw, if the first part of your url is always the same, you can put the 
http://bla.com/?bla= in the layers.tpl and only pass the argument via 
metadata, hence avoiding passing a =.

regards
Oliver



----- Original Message ----- 
From: "Yves Jacolin" <yjacolin at free.fr>
To: <cartoweb-dev at lists.maptools.org>
Sent: Wednesday, February 14, 2007 5:58 PM
Subject: Re: [Cartoweb-dev] layers.tpl and metadata


> Le Mercredi 14 Février 2007 15:46, Yves Jacolin a écrit :
>> 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-i
>> > >d= 21739 the link in the gui :
>> > > http://www.paris.fr/portail/viewmultimediadocument?multimediadocument-i
>> > >d
>> > >
>> > > Thanks !
>> > >
>> > > Y.
>> >
>> > Have you tried to use quotes " to surround your link value ?
>> >
>> > Pierre
>>
>> I change the ling above by :
>> http://www.paris.fr/portail/viewmultimediadocument?multimediadocument-id%3d
>>21739
>>
>> Note the %3d for the = symbol !
>>
>> Y.
> Hi,
>
> Finally it is not working. All "=" sign breaks the line. If anyboy got an
> idea ?
>
> Y.
> -- 
> Yves Jacolin
> ---
> http://yjacolin.gloobe.org
>
> _______________________________________________
> Cartoweb-dev mailing list
> Cartoweb-dev at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/cartoweb-dev
> 



More information about the Cartoweb-dev mailing list