[Mapserver-users] Metadata access via templates
Michael Schulz
mschulz at webgis.de
Thu Jan 30 02:23:08 PST 2003
Hi,
is it correct, that metadatakey substitution( [layername_metadatakey])
in templates is only happening when that specific layer is drawn?
Otherwise the substituion is empty?!
mapfile snip:
LAYER
NAME "ffh"
METADATA
"l_name" " "
"infofile" "ffh.html"
END
template snip:
<td class="cmd"><a href="./[ffh_infofile]" target="_new">FFH</a></td>
processed html when layer drawn:
<td class="cmd"><a href="./ffh.html" target="_new">FFH</a></td>
processed html when layer not drawn:
<td class="cmd"><a href="./" target="_new">FFH</a></td>
I am using this in the layer selection part, where the layers appear
even if they are not drawn on the map, is there a way that the
substitution will happen in every case? Thanks,
Michael
--
-----------------------------------------------------------
Michael Schulz in medias res
Dipl.-Geologe Gesellschaft für
Informationstechnologie mbH
Sautierstr. 38, 79104 Freiburg
0761 55695-95 (Fax 96)
mschulz at webgis.de www.webgis.de
More information about the MapServer-users
mailing list