[Cartoweb-dev] layers.tpl and metadata

Yves Jacolin yjacolin at free.fr
Thu Feb 15 03:47:24 EST 2007


Thanks Oliver,

I would like to use mapfile for a better management and avoid to separate 
layer data and structure management.

Anyway, I managed this, hosting the file in my server.

Y.
Le Jeudi 15 Février 2007 08:16, vous avez écrit :
> 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?multimediadocumen
> >> > >t-i d= 21739 the link in the gui :
> >> > > http://www.paris.fr/portail/viewmultimediadocument?multimediadocumen
> >> > >t-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

-- 
Yves Jacolin
---
http://yjacolin.gloobe.org



More information about the Cartoweb-dev mailing list