I needed this functionality too and I've got it to work by modifying the legend 
display name of the layer in Studio. Wrap the name with an <a> tag that calls 
your page or jscript function and you’ll see the name of the layer displayed as 
a url in the legend.
 
You’ll have to comment out the “return false;” in the OnClick() function of 
legendui.templ to enable the hyperlink.






----- Original Message ----
From: "Campbell, Keith A" <[EMAIL PROTECTED]>
To: MapGuide Users Mail List <[email protected]>
Sent: Wednesday, January 16, 2008 5:18:02 AM
Subject: [mapguide-users] URL in Legend


I'd like to add a link in the legend from each layer / group to some 
information about the layer (in a new window). Has anybody done this 
successfully and if so, would you mind sharing how you did it?
Keith 



This email and any attached files are confidential and copyright protected. If 
you are not the addressee, any dissemination of this communication is strictly 
prohibited. Unless otherwise expressly agreed in writing, nothing stated in 
this communication shall be legally binding. 
The ultimate parent company of the Atkins Group is WS Atkins plc. Registered in 
England No. 1885586. Registered Office Woodcote Grove, Ashley Road, Epsom, 
Surrey KT18 5BW. A list of wholly owned Atkins Group companies registered in 
the United Kingdom can be found at: 
http://www.atkinsglobal.com/terms_and_conditions/index.aspx. 
P Consider the environment. Please don't print this e-mail unless you really 
need to.


      
____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 
_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Reply via email to