[Cartoweb-users] hidding a security layer in switch dropdown
Dahinden Adrian
a.dahinden at geo-thun.ch
Tue Mar 17 10:17:52 EST 2009
Hi Oliver
I've just tested it - without any success. I think it isn't possible because I can't define in the layers.ini file which switch-label should disappear when I would be logged in. I mean something like this:
switches.switch1.label = LK Abwasser
switches.switch1.metadata.security_view = lk_abwasser
This is only working in a normal dropdown menu.
Have a nice evening. Regards,
Adrian
_____
Von: Oliver Christen [mailto:oliver.christen at camptocamp.com]
Gesendet: Dienstag, 17. März 2009 11:28
An: Dahinden Adrian; cartoweb-users at lists.maptools.org
Betreff: Re: [Cartoweb-users] hidding a security layer in switch dropdown
mmm, did you try with your layerreorder plugin deactivated to see if it's not once again a side effect ?
----- Original Message -----
From: Dahinden Adrian <mailto:a.dahinden at geo-thun.ch>
To: cartoweb-users at lists.maptools.org
Sent: Friday, March 13, 2009 5:40 PM
Subject: [Cartoweb-users] hidding a security layer in switch dropdown
Hi list
Does anybody know, how I can hide a Layer in a switch-dropdown?
Now the layer is not available, but still visible in the dropdown. The layer should only be visible when the legitimate user is logged in. The definitions in the layers.ini file:
switches.switch1.label = LK Abwasser
layers.Kartenvorwahl_Gemeinden.className = LayerGroup
layers.Kartenvorwahl_Gemeinden.children.switch1 = LK_Abwasser
layers.Kartenvorwahl_Gemeinden.label = Kartenvorwahl_Gemeinden
layers.LK_Abwasser.className = LayerGroup
layers.LK_Abwasser.label = LK_Abwasser
layers.LK_Abwasser.children = LK_Abwasser_Uebersicht, LK_Abwasser_Daten
layers.LK_Abwasser.rendering = tree
layers.LK_Abwasser.metadata.security_view = lk_abwasser
Thanks very much for any hints.
Regards
Adrian Dahinden
********************************************
Dütschler & Naegeli
Vermessung + Geoinformation AG
Fliederweg 11, Postfach
3601 Thun
Telefon 033 / 225 40 50
Fax 033 / 225 40 60
mailto:a.dahinden at geo-thun.ch
http://www.geo-thun.ch <http://www.geo-thun.ch/>
********************************************
_____
_______________________________________________
Cartoweb-users mailing list
Cartoweb-users at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/cartoweb-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/cartoweb-users/attachments/20090317/d6efba4d/attachment.htm
More information about the Cartoweb-users
mailing list